Author: jacopoc
Date: Tue Aug 11 07:30:06 2009
New Revision: 803013
URL:
http://svn.apache.org/viewvc?rev=803013&view=revLog:
Fix for bug reported by Hans Bakker in OFBIZ-2823.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java?rev=803013&r1=803012&r2=803013&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java Tue Aug 11 07:30:06 2009
@@ -165,6 +165,12 @@
idName += "_" + modelForm.getRowCount();
}
String description = displayField.getDescription(context);
+ if (UtilValidate.isNotEmpty(description)) {
+ StringUtil.SimpleEncoder encoder = (StringUtil.SimpleEncoder)context.get("simpleEncoder");
+ if (encoder != null) {
+ description = encoder.encode(description);
+ }
+ }
ModelFormField.InPlaceEditor inPlaceEditor = displayField.getInPlaceEditor();
boolean ajaxEnabled = inPlaceEditor != null && this.javaScriptEnabled;