svn commit: r1307097 - /ofbiz/trunk/applications/workeffort/widget/CalendarForms.xml

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

svn commit: r1307097 - /ofbiz/trunk/applications/workeffort/widget/CalendarForms.xml

erwan
Author: erwan
Date: Thu Mar 29 20:38:21 2012
New Revision: 1307097

URL: http://svn.apache.org/viewvc?rev=1307097&view=rev
Log:
OFBIZ-4770 - editCalEvent not use label system on status drop-down - a patch from Nicolas Malin

Modified:
    ofbiz/trunk/applications/workeffort/widget/CalendarForms.xml

Modified: ofbiz/trunk/applications/workeffort/widget/CalendarForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/widget/CalendarForms.xml?rev=1307097&r1=1307096&r2=1307097&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/widget/CalendarForms.xml (original)
+++ ofbiz/trunk/applications/workeffort/widget/CalendarForms.xml Thu Mar 29 20:38:21 2012
@@ -72,12 +72,8 @@ under the License.
 
     <form name="editCalEvent" type="single" default-map-name="workEffort">
         <actions>
-            <entity-condition entity-name="StatusItem" list="statusItemList">
-                <condition-list combine="or">
-                    <condition-expr field-name="statusTypeId" value="EVENT_STATUS" />
-                    <condition-expr field-name="statusTypeId" value="CALENDAR_STATUS" />
-                </condition-list>
-            </entity-condition>
+            <set field="statusTypeIds[]" value="EVENT_STATUS"/>
+            <set field="statusTypeIds[]" value="CALENDAR_STATUS"/>
             <!-- Allow containing screens to specify the create and update URLs -->
             <set field="createCalEventUrl" from-field="createCalEventUrl" default-value="createWorkEffortAndPartyAssign" />
             <set field="updateCalEventUrl" from-field="updateCalEventUrl" default-value="updateWorkEffort" />
@@ -110,7 +106,9 @@ under the License.
         </field>
         <field name="currentStatusId" title="${uiLabelMap.CommonStatus}">
             <drop-down no-current-selected-key="CAL_TENTATIVE">
-                <list-options key-name="statusId" list-name="statusItemList" description="${description}" />
+                <entity-options entity-name="StatusItem" description="${description}" key-field-name="statusId">
+                    <entity-constraint name="statusTypeId" operator="in" env-name="statusTypeIds"/>
+                </entity-options>
             </drop-down>
         </field>
         <field name="scopeEnumId">