Author: mbrohl
Date: Sat Dec 17 15:25:12 2016
New Revision: 1774776

URL: http://svn.apache.org/viewvc?rev=1774776&view=rev
Log:
Improved: Proper Form Validation should be there while adding new Example 
Feature.
(OFBIZ-7476)

Thanks: Ankit Joshi for reporting and providing the patch.

Modified:
    ofbiz/trunk/specialpurpose/example/widget/example/ExampleFeatureForms.xml

Modified: 
ofbiz/trunk/specialpurpose/example/widget/example/ExampleFeatureForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/example/widget/example/ExampleFeatureForms.xml?rev=1774776&r1=1774775&r2=1774776&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/example/widget/example/ExampleFeatureForms.xml 
(original)
+++ ofbiz/trunk/specialpurpose/example/widget/example/ExampleFeatureForms.xml 
Sat Dec 17 15:25:12 2016
@@ -58,7 +58,7 @@ under the License.
         <field use-when="exampleFeature!=null" name="exampleFeatureId" 
title="${uiLabelMap.ExampleExampleFeatureId}"><display/></field>
         <field use-when="exampleFeature==null @and exampleFeatureId==null" 
name="exampleFeatureId" 
title="${uiLabelMap.ExampleExampleFeatureId}"><ignored/></field>
         <field use-when="exampleFeature==null @and exampleFeatureId!=null" 
name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}"><display 
description="${uiLabelMap.CommonCannotBeFound}: [${exampleFeatureId}]" 
also-hidden="false"/></field>
-        <field name="description" title="${uiLabelMap.CommonDescription}"/>
+        <field name="description" title="${uiLabelMap.CommonDescription}" 
required-field="true"/>
         <field name="featureSourceEnumId" 
title="${uiLabelMap.ExampleFeatureSource}">
             <drop-down allow-empty="false">
                 <entity-options entity-name="Enumeration" 
key-field-name="enumId" description="${description} [${enumCode}]">


Reply via email to