mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Data Dictionary:
- Add check to ensure property override actually refers to an existing property Workflow: - Fix overridden property defaults for Review & Approve tasks - Update workflow resource bundles to reflect recent model changes git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3576 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -191,6 +191,15 @@ import org.alfresco.service.namespace.QName;
|
||||
{
|
||||
((M2AssociationDefinition)def).resolveDependencies(query);
|
||||
}
|
||||
|
||||
for (Map.Entry<QName, M2PropertyOverride> override : propertyOverrides.entrySet())
|
||||
{
|
||||
PropertyDefinition propDef = query.getProperty(override.getKey());
|
||||
if (propDef == null)
|
||||
{
|
||||
throw new DictionaryException("Class " + name.toPrefixString() + " attempting to override property " + override.getKey().toPrefixString() + " which does not exist");
|
||||
}
|
||||
}
|
||||
|
||||
for (QName aspectName : defaultAspectNames)
|
||||
{
|
||||
|
Reference in New Issue
Block a user