Fixed: Add TASK_STATUS to `status' field options in EditCalEvent form (OFBIZ-12271)
As WorkEffort entities with type as `Task' and a non-empty `Estimated Start Date' will be included in calendar page, so TASK_STATUS should be added to EditCalEvent, to make task status be correctly displayed and updated. 1. Go to page: https://demo-trunk.ofbiz.apache.org/workeffort/control/EditWorkEffort 2. Create a WorkEffort with Type as Task, Status as [Task] Accepted, and select Now for Estimated Start Date 3. Go to page: https://demo-trunk.ofbiz.apache.org/workeffort/control/calendar 4. Selected newly added task entry in calender, to show the edit form In step 4, task status will be shown as In Planning, instead of Accepted. Thanks: Xin Wang
This commit is contained in:
@@ -72,8 +72,9 @@ under the License.
|
||||
|
||||
<form name="EditCalEvent" type="single" default-map-name="workEffort">
|
||||
<actions>
|
||||
<set field="statusTypeIds[]" value="EVENT_STATUS"/>
|
||||
<set field="statusTypeIds[]" value="CALENDAR_STATUS"/>
|
||||
<set field="statusTypeIds[]" value="EVENT_STATUS"/>
|
||||
<set field="statusTypeIds[]" value="TASK_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" />
|
||||
|
||||
Reference in New Issue
Block a user