diff --git a/source/java/org/alfresco/repo/dictionary/M2ConstraintDefinition.java b/source/java/org/alfresco/repo/dictionary/M2ConstraintDefinition.java index f9c3bc0b88..785a047256 100644 --- a/source/java/org/alfresco/repo/dictionary/M2ConstraintDefinition.java +++ b/source/java/org/alfresco/repo/dictionary/M2ConstraintDefinition.java @@ -160,8 +160,11 @@ import org.springframework.beans.PropertyAccessException; constraintDef.resolveDependencies(query); // just use the constraint provided by the referenced definition this.constraint = constraintDef.getConstraint(); + //use real constraint name instead of anonymous name - this.name = constraintDef.getName(); + //TODO Fix backed out - breaks DictionaryDAOTest + //this.name = constraintDef.getName(); + if (m2Constraint.getTitle() == null) {