Author: mbrohl Date: Sat Dec 17 16:22:43 2016 New Revision: 1774790 URL: http://svn.apache.org/viewvc?rev=1774790&view=rev Log: Improved: Proper Form validation should be added while creating new agreement product. (OFBIZ-7441)
Thanks: Ankit Joshi for reporting and providing the patch. Modified: ofbiz/trunk/applications/accounting/widget/AgreementForms.xml Modified: ofbiz/trunk/applications/accounting/widget/AgreementForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/AgreementForms.xml?rev=1774790&r1=1774789&r2=1774790&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/widget/AgreementForms.xml (original) +++ ofbiz/trunk/applications/accounting/widget/AgreementForms.xml Sat Dec 17 16:22:43 2016 @@ -463,7 +463,7 @@ under the License. <auto-fields-entity entity-name="AgreementProductAppl" default-field-type="edit"/> <field name="agreementId"><hidden/></field> <field name="agreementItemSeqId"><hidden/></field> - <field name="productId" use-when="agreementProductAppl==null"> + <field name="productId" use-when="agreementProductAppl==null" required-field="true"> <lookup target-form-name="LookupProduct"/> </field> <field name="productId" use-when="agreementProductAppl!=null"><display/></field>