mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Anonymous M2 constraint name should be stored with resolved namespace prefix (of its property) - fix for model activation in MT env (e.g. bootstrap workflow models)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6711 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -104,7 +104,7 @@ import org.springframework.beans.PropertyAccessException;
|
|||||||
// pick the name up from the property and some anonymous value
|
// pick the name up from the property and some anonymous value
|
||||||
String localName = m2PropertyDef.getName().getLocalName() + "_anon_" + (++anonPropCount);
|
String localName = m2PropertyDef.getName().getLocalName() + "_anon_" + (++anonPropCount);
|
||||||
this.name = QName.createQName(m2PropertyDef.getName().getNamespaceURI(), localName);
|
this.name = QName.createQName(m2PropertyDef.getName().getNamespaceURI(), localName);
|
||||||
m2Constraint.setName(localName);
|
m2Constraint.setName(this.name.getPrefixedQName(prefixResolver).toPrefixString());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user