ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r941600 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/UtilHelpText.java
Date Thu, 06 May 2010 07:56:23 GMT
Author: erwan
Date: Thu May  6 07:56:23 2010
New Revision: 941600

URL: http://svn.apache.org/viewvc?rev=941600&view=rev
Log:
Modification on previous commit (941261) : we need to return an empty string if there is no
value found for the key, regardless of whether debuging is on or off

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=941600&r1=941599&r2=941600&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 Thu May  6 07:56:23
2010
@@ -51,8 +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);
+        if (fieldDescription.equals(messageId)) {
+            if (Debug.infoOn()) {
+                Debug.logInfo("No help text found in [" + entityResourceName + "] with key
[" + messageId + "]", module);
+            }
             return "";
         }
         return fieldDescription;



Mime
View raw message