svn commit: r1791634 - /ofbiz/ofbiz-framework/trunk/applications/manufacturing/widget/manufacturing/RoutingTaskForms.xml

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

svn commit: r1791634 - /ofbiz/ofbiz-framework/trunk/applications/manufacturing/widget/manufacturing/RoutingTaskForms.xml

jleroux@apache.org
Author: jleroux
Date: Sun Apr 16 20:56:52 2017
New Revision: 1791634

URL: http://svn.apache.org/viewvc?rev=1791634&view=rev
Log:
Fixed: Routing should not be allow to update with empty routing name
(OFBIZ-7375)

Steps to regenerate -
1) Navigate to manufacturing -> Routing
2) Press New Routing button.
3) Try to create a routing without entering Routing Name. It will not allowed to
   create the record as routing name is mandatory field.
4) Create routing by adding proper details.

5) Now, select newly create routing from manufacturing -> Routing
6) Try to update selected routing with empty Routing Name.

Actual   : Routing can be update with empty Routing Name.
Expected : Routing should not allow to update with empty Routing Name.

Thanks: Ankit Joshi for analysis and patch

Modified:
    ofbiz/ofbiz-framework/trunk/applications/manufacturing/widget/manufacturing/RoutingTaskForms.xml

Modified: ofbiz/ofbiz-framework/trunk/applications/manufacturing/widget/manufacturing/RoutingTaskForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/manufacturing/widget/manufacturing/RoutingTaskForms.xml?rev=1791634&r1=1791633&r2=1791634&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/manufacturing/widget/manufacturing/RoutingTaskForms.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/manufacturing/widget/manufacturing/RoutingTaskForms.xml Sun Apr 16 20:56:52 2017
@@ -68,7 +68,7 @@ under the License.
         <alt-target use-when="routing==null" target="CreateRouting"/>
         <field name="workEffortTypeId" use-when="routing==null"><hidden value="ROUTING"/></field>
         <field name="workEffortId" use-when="routing!=null"><hidden/></field>
-        <field name="workEffortName" title="${uiLabelMap.ManufacturingRoutingName}"><text/></field>
+        <field name="workEffortName" title="${uiLabelMap.ManufacturingRoutingName}" required-field="true"><text/></field>
         <field name="description"><text/></field>
         <field name="quantityToProduce" title="${uiLabelMap.ManufacturingQuantityToProduce}"><text/></field>
         <field name="currentStatusId">