mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed ALF-9591: Integrity check: Association source multiplicity checking is incorrect
- Drop checks for source multiplicity when no associations are pointing to a type/aspect instance git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31018 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -169,13 +169,11 @@ public class AssocSourceMultiplicityIntegrityEvent extends AbstractIntegrityEven
|
||||
{
|
||||
if (actualSize == 0)
|
||||
{
|
||||
// Double check that the association source is still present
|
||||
ClassDefinition classDef = assocDef.getTargetClass();
|
||||
if (classDef.isAspect() && !nodeService.hasAspect(targetNodeRef, classDef.getName()))
|
||||
{
|
||||
// The target is an aspect but the aspect is not present
|
||||
return;
|
||||
}
|
||||
// ALF-9591: Integrity check: Association source multiplicity checking is incorrect
|
||||
// At this point, there is no point worrying. There are no more associations
|
||||
// pointing *to* this node and therefore the checking of the source
|
||||
// multiplicity (a feature of the source type/aspect) is not relevant
|
||||
return;
|
||||
}
|
||||
|
||||
String parentOrSourceStr = (assocDef.isChild() ? "parent" : "source");
|
||||
|
Reference in New Issue
Block a user