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:
Erwan de Ferrieres
2010-05-05 11:53:06 +00:00
parent 87d4de1711
commit c2ecf31559
@@ -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;
}
}