Author: jacopoc
Date: Mon Dec 27 15:07:37 2010
New Revision: 1053081
URL:
http://svn.apache.org/viewvc?rev=1053081&view=revLog:
A couple of fixes for csv exports: removed leading blank character in titles and fixed error caused by fields containing ampersands.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java
ofbiz/trunk/framework/widget/templates/csvFormMacroLibrary.ftl
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=1053081&r1=1053080&r2=1053081&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 Mon Dec 27 15:07:37 2010
@@ -220,7 +220,7 @@ public class MacroFormRenderer implement
sr.append("\" idName=\"");
sr.append(idName);
sr.append("\" description=\"");
- sr.append(description);
+ sr.append(FreeMarkerWorker.encodeDoubleQuotes(description));
sr.append("\" title=\"");
sr.append(title);
sr.append("\" class=\"");
Modified: ofbiz/trunk/framework/widget/templates/csvFormMacroLibrary.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/templates/csvFormMacroLibrary.ftl?rev=1053081&r1=1053080&r2=1053081&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/templates/csvFormMacroLibrary.ftl (original)
+++ ofbiz/trunk/framework/widget/templates/csvFormMacroLibrary.ftl Mon Dec 27 15:07:37 2010
@@ -50,7 +50,7 @@ under the License.
<#macro renderHiddenField name value id event action></#macro>
<#macro renderIgnoredField></#macro>
-<#macro renderFieldTitle style title id fieldHelpText=""><@renderField title />, </#macro>
+<#macro renderFieldTitle style title id fieldHelpText=""><@renderField title />,</#macro>
<#macro renderSingleFormFieldTitle></#macro>
<#macro renderFormOpen linkUrl formType targetWindow containerId containerStyle autocomplete name useRowSubmit></#macro>