You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2021/07/10 10:38:21 UTC
[ofbiz-framework] branch release17.12 updated: Fixed: Add
TASK_STATUS to `status' field options in EditCalEvent form (OFBIZ-12271)
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release17.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release17.12 by this push:
new 123d9ed Fixed: Add TASK_STATUS to `status' field options in EditCalEvent form (OFBIZ-12271)
123d9ed is described below
commit 123d9ed67f5eec9df62d2ecdd22577bc365fbef5
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Sat Jul 10 12:35:37 2021 +0200
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
---
applications/workeffort/widget/CalendarForms.xml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/applications/workeffort/widget/CalendarForms.xml b/applications/workeffort/widget/CalendarForms.xml
index f018617..7003f48 100644
--- a/applications/workeffort/widget/CalendarForms.xml
+++ b/applications/workeffort/widget/CalendarForms.xml
@@ -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" />