mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix for ALFCOM-2970: System properties are editable if configured to appear in a form, also added title and description for sys:node-dbid property
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14780 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -595,6 +595,13 @@ public class NodeFormProcessor extends FilteredFormProcessor
|
||||
fieldDef.setProtectedField(propDef.isProtected());
|
||||
fieldDef.setRepeating(propDef.isMultiValued());
|
||||
|
||||
// any property from the system model (sys prefix) should be protected
|
||||
// the model doesn't currently enforce this so make sure they are not editable
|
||||
if (NamespaceService.SYSTEM_MODEL_1_0_URI.equals(propDef.getName().getNamespaceURI()))
|
||||
{
|
||||
fieldDef.setProtectedField(true);
|
||||
}
|
||||
|
||||
// define the data key name and set
|
||||
String dataKeyName = PROP_DATA_PREFIX + nameParts[0] + DATA_KEY_SEPARATOR + nameParts[1];
|
||||
fieldDef.setDataKeyName(dataKeyName);
|
||||
|
Reference in New Issue
Block a user