mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. Changed UIProperty to not output error to screen when a configured property is missing from a node
- instead a DEBUG log level message is output . Title is no longer mandatory on edit-document-properties screen . Titled aspect added to content doc if required the first time you save props in the document properties screen git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2043 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -110,15 +110,14 @@ public class UIProperty extends PropertySheetItem
|
||||
else
|
||||
{
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Failed to find property definition for property '" + propertyName + "'");
|
||||
logger.debug("Failed to find property definition for property '" + propertyName + "' for node: " + node.getNodeRef().toString());
|
||||
|
||||
// NOTE: removed the error as it simply serves to confuse users and clutter the screen,
|
||||
// the debugging log level should be used instead when developing property screens.
|
||||
// add an error message as the property is not defined in the data dictionary and
|
||||
// not in the node's set of properties
|
||||
String msg = MessageFormat.format(Application.getMessage(context, MSG_ERROR_PROPERTY), new Object[] {propertyName});
|
||||
Utils.addErrorMessage(msg);
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Added global error message: " + msg);
|
||||
//String msg = MessageFormat.format(Application.getMessage(context, MSG_ERROR_PROPERTY), new Object[] {propertyName});
|
||||
//Utils.addErrorMessage(msg);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user