svn commit: r1153752 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1153752 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java

adrianc
Author: adrianc
Date: Thu Aug  4 04:51:19 2011
New Revision: 1153752

URL: http://svn.apache.org/viewvc?rev=1153752&view=rev
Log:
Fixed a screen widget bug where non-existent hyperlink parameter values were rendered as "null" - https://issues.apache.org/jira/browse/OFBIZ-4358.

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=1153752&r1=1153751&r2=1153752&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java Thu Aug  4 04:51:19 2011
@@ -279,11 +279,13 @@ public class WidgetWorker {
         writer.append("\">");
 
         for (Map.Entry<String, String> parameter: parameterMap.entrySet()) {
-            writer.append("<input name=\"");
-            writer.append(parameter.getKey());
-            writer.append("\" value=\"");
-            writer.append(parameter.getValue());
-            writer.append("\" type=\"hidden\"/>");
+            if (parameter.getValue() != null) {
+                writer.append("<input name=\"");
+                writer.append(parameter.getKey());
+                writer.append("\" value=\"");
+                writer.append(parameter.getValue());
+                writer.append("\" type=\"hidden\"/>");
+            }
         }
 
         writer.append("</form>");