A slighty modified patch from Chris Snow "Field description tooltips show key if help text is not found" OFBIZ-3749
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941261 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -51,6 +51,10 @@ public class UtilHelpText {
|
||||
String entityResourceName = entity.getDefaultResourceName();
|
||||
String messageId = "FieldDescription." + entityName + "." + fieldName;
|
||||
String fieldDescription = UtilProperties.getMessage(entityResourceName, messageId, locale);
|
||||
if (fieldDescription.equals(messageId) && Debug.infoOn()) {
|
||||
Debug.logInfo("No help text found in [" + entityResourceName + "] with key [" + messageId + "]", module);
|
||||
return "";
|
||||
}
|
||||
return fieldDescription;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user