Author: erwan
Date: Wed May 5 11:53:06 2010
New Revision: 941261
URL:
http://svn.apache.org/viewvc?rev=941261&view=revLog:
A slighty modified patch from Chris Snow "Field description tooltips show key if help text is not found" OFBIZ-3749
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/UtilHelpText.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/UtilHelpText.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/UtilHelpText.java?rev=941261&r1=941260&r2=941261&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/UtilHelpText.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/UtilHelpText.java Wed May 5 11:53:06 2010
@@ -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;
}
}
\ No newline at end of file