SAIL-348 : Reorder rules returns 200 OK but with error message

- This fix includees some refactoring
 - Tests updated



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19415 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2010-03-19 17:18:42 +00:00
parent ce813d1cfc
commit 0219778d77

View File

@@ -806,8 +806,11 @@ public class RuleServiceImpl
{ {
orderedAssocs.add(assoc); orderedAssocs.add(assoc);
} }
} }
orderedAssocs.add(index, movedAssoc); if (movedAssoc != null)
{
orderedAssocs.add(index, movedAssoc);
}
index = 0; index = 0;
for (ChildAssociationRef orderedAssoc : orderedAssocs) for (ChildAssociationRef orderedAssoc : orderedAssocs)