svn commit: r1858275 - /ofbiz/ofbiz-framework/trunk/applications/product/template/product/EditProductContent.ftl

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

svn commit: r1858275 - /ofbiz/ofbiz-framework/trunk/applications/product/template/product/EditProductContent.ftl

jleroux@apache.org
Author: jleroux
Date: Sat Apr 27 13:33:44 2019
New Revision: 1858275

URL: http://svn.apache.org/viewvc?rev=1858275&view=rev
Log:
Fixed: Display of entities in text input field for Product Name
(OFBIZ-10356)

In the url:  catalog/control/EditProductContent?productId=GZ-1006-1
the "Product Name" under "Override Simple Fields" is unnecessarily
expressed in entity format . The string displayed in product name
field is:

"Open Gizmo (LGPL)"

it could have been a
simple "Open Gizmo (LGPL)"

jleroux: this was due to OFBIZ-248 when StringUtil.wrapString() was not yet
available (IIRW)

Thanks: Rajesh Kumar Mallah for report, Swapnil M Mane for discussion, and
Ankit Joshi for the fix

Modified:
    ofbiz/ofbiz-framework/trunk/applications/product/template/product/EditProductContent.ftl

Modified: ofbiz/ofbiz-framework/trunk/applications/product/template/product/EditProductContent.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/template/product/EditProductContent.ftl?rev=1858275&r1=1858274&r2=1858275&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/product/template/product/EditProductContent.ftl (original)
+++ ofbiz/ofbiz-framework/trunk/applications/product/template/product/EditProductContent.ftl Sat Apr 27 13:33:44 2019
@@ -45,7 +45,7 @@ under the License.
                 <td width="20%" align="right" valign="top"><b>${uiLabelMap.ProductProductName}</b></td>
                 <td>&nbsp;</td>
                 <td width="80%" colspan="4" valign="top">
-                    <input type="text" name="productName" value="${(product.productName?html)!}" size="30" maxlength="60"/>
+                    <input type="text" name="productName" value="${StringUtil.wrapString(product.productName)!}" size="30" maxlength="60"/>
                 </td>
             </tr>
             <tr>