Author: erwan
Date: Wed May 5 11:55:04 2010
New Revision: 941262
URL:
http://svn.apache.org/viewvc?rev=941262&view=revLog:
Applied fix from trunk for revision: 941261
A slighty modified patch from Chris Snow "Field description tooltips show key if help text is not found" OFBIZ-3749
Modified:
ofbiz/branches/release10.04/ (props changed)
ofbiz/branches/release10.04/framework/widget/src/org/ofbiz/widget/form/UtilHelpText.java
Propchange: ofbiz/branches/release10.04/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed May 5 11:55:04 2010
@@ -1,3 +1,3 @@
/ofbiz/branches/addbirt:831210-885099,885686-886087
/ofbiz/branches/multitenant20100310:921280-927264
-/ofbiz/trunk:939988,939990,939999,940025,940053,940234,940248,940309,940401,940410,940425,940779,940815,940849,941007,941199
+/ofbiz/trunk:939988,939990,939999,940025,940053,940234,940248,940309,940401,940410,940425,940779,940815,940849,941007,941199,941261
Modified: ofbiz/branches/release10.04/framework/widget/src/org/ofbiz/widget/form/UtilHelpText.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release10.04/framework/widget/src/org/ofbiz/widget/form/UtilHelpText.java?rev=941262&r1=941261&r2=941262&view=diff==============================================================================
--- ofbiz/branches/release10.04/framework/widget/src/org/ofbiz/widget/form/UtilHelpText.java (original)
+++ ofbiz/branches/release10.04/framework/widget/src/org/ofbiz/widget/form/UtilHelpText.java Wed May 5 11:55:04 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