From 46dee0999d148e151a994828b8f57879c64a8de8 Mon Sep 17 00:00:00 2001 From: Mark Rogers Date: Thu, 22 Oct 2009 09:49:40 +0000 Subject: [PATCH] ALFCOM-3494 - ConstraintDefinition.getName should return real constraint name git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17079 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../org/alfresco/repo/dictionary/M2ConstraintDefinition.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/java/org/alfresco/repo/dictionary/M2ConstraintDefinition.java b/source/java/org/alfresco/repo/dictionary/M2ConstraintDefinition.java index 852fc9e1f8..f9c3bc0b88 100644 --- a/source/java/org/alfresco/repo/dictionary/M2ConstraintDefinition.java +++ b/source/java/org/alfresco/repo/dictionary/M2ConstraintDefinition.java @@ -160,6 +160,8 @@ 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(); if (m2Constraint.getTitle() == null) {