ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Malin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-7959) Enable the status selection for WorkEffort duplication
Date Fri, 19 Aug 2016 06:59:20 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-7959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15427704#comment-15427704

Nicolas Malin commented on OFBIZ-7959:

Yes I confirm ;) 

<option value='${statusListSelect.statusId}'>${statusListSelect.getString("description")}</option>

need to be
<option value='${statusListSelect.statusId}'>${statusListSelect.getString("description",

but the better way would be move this ftl en xml form ^^

An other point :

+        <!-- Set the statusId of the new WorkEffort to this status, otherwise, set the
status to the first of the sequenceId
+          of the statusTypeId -->
+        <attribute name="statusId" type="String" mode="IN" optional="true"/>

Use the element description instead of xml comment to explain how use this attribute

> Enable the status selection for WorkEffort duplication
> ------------------------------------------------------
>                 Key: OFBIZ-7959
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7959
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: workeffort
>    Affects Versions: Trunk
>            Reporter: Montalbano Florian
>            Priority: Minor
>              Labels: duplicate, status, workeffort
>         Attachments: OFBIZ-7959.patch
> It is possible to duplicate workeffort in the WorkEffort component (https://localhost:8443/workeffort/control/EditWorkEffort?workEffortId=9000)
but the duplicated WorkEffort keeps the same status than the original one. So when you duplicate
a cancelled task, it is locked in the same state.
> We could adapt this service to allow the selection of the status for the new workeffort.
Of course, you should be able to select only status that are relevant to the workeffort type.

> A first solution is to get the currentStatusId of the workeffort to duplicate. Then we
can access to the linked statusTypeId. So we can retrieve all status relevant and order them
by sequenceId (that way the default value is the first statuts of the sequence : created for
the task).

This message was sent by Atlassian JIRA

View raw message