Author: mbrohl Date: Sat Dec 17 20:31:14 2016 New Revision: 1774801 URL: http://svn.apache.org/viewvc?rev=1774801&view=rev Log: Improved: Proper client side validation while creating price rule from catalog manager. (OFBIZ-7307)
Thanks: Suraj Khurana for reporting and providing the patch. Modified: ofbiz/trunk/applications/product/widget/catalog/PriceForms.xml Modified: ofbiz/trunk/applications/product/widget/catalog/PriceForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/PriceForms.xml?rev=1774801&r1=1774800&r2=1774801&view=diff ============================================================================== --- ofbiz/trunk/applications/product/widget/catalog/PriceForms.xml (original) +++ ofbiz/trunk/applications/product/widget/catalog/PriceForms.xml Sat Dec 17 20:31:14 2016 @@ -48,10 +48,9 @@ </field> </form> <form name="AddPriceRules" type="single" target="createProductPriceRule"> - <field name="ruleName" title="${uiLabelMap.ProductName}"><text size="30"/></field> + <field name="ruleName" title="${uiLabelMap.ProductName}" required-field="true"><text size="30"/></field> <field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field> </form> - <!-- Below, I tried also single forms but lists are better as long as we have not introduced a better way to handle positions --> <form name="EditProductPriceRule" type="list" target="updateProductPriceRule" title="" list-name="productPriceRules" odd-row-style="alternate-row" default-table-style="basic-table hover-bar" separate-columns="true">