[
https://issues.apache.org/jira/browse/OFBIZ-768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eriks Dobelis updated OFBIZ-768:
--------------------------------
Description:
In WorkEffort/TaskList assigned tasks are not shown. This is due to code in
WorkEffortServices.java, which assigns value to validWorkEfforts twice instead
of merging the lists. This is in turn due to change submitted in r510412
Code from WorkEffortServices.java
validWorkEfforts =
delegator.findByAnd("WorkEffortAndPartyAssign",
UtilMisc.toList(new EntityExpr("partyId",
EntityOperator.EQUALS, userLogin.get("partyId")),
new EntityExpr("workEffortTypeId",
EntityOperator.EQUALS, "TASK"),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "CAL_DECLINED"),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "CAL_DELEGATED"),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "CAL_COMPLETED"),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "CAL_CANCELLED")),
UtilMisc.toList("priority"));
validWorkEfforts =
delegator.findByAnd("WorkEffortAndPartyAssign",
UtilMisc.toList(new EntityExpr("partyId",
EntityOperator.EQUALS, userLogin.get("partyId")),
new EntityExpr("workEffortTypeId",
EntityOperator.EQUALS, "PROD_ORDER_TASK"),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "PRUN_CANCELLED "),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "PRUN_COMPLETED"),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "PRUN_CLOSED")),
UtilMisc.toList("createdDate DESC"));
was:
In WorkEffort/TaskList assigned tasks are not shown. This is due to code in
WorkEffortServices.java, which assigns value to validWorkEfforts twise instead
of merging the lists. This is in turn due to change submitted in r510412
Code from WorkEffortServices.java
validWorkEfforts =
delegator.findByAnd("WorkEffortAndPartyAssign",
UtilMisc.toList(new EntityExpr("partyId",
EntityOperator.EQUALS, userLogin.get("partyId")),
new EntityExpr("workEffortTypeId",
EntityOperator.EQUALS, "TASK"),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "CAL_DECLINED"),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "CAL_DELEGATED"),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "CAL_COMPLETED"),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "CAL_CANCELLED")),
UtilMisc.toList("priority"));
validWorkEfforts =
delegator.findByAnd("WorkEffortAndPartyAssign",
UtilMisc.toList(new EntityExpr("partyId",
EntityOperator.EQUALS, userLogin.get("partyId")),
new EntityExpr("workEffortTypeId",
EntityOperator.EQUALS, "PROD_ORDER_TASK"),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "PRUN_CANCELLED "),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "PRUN_COMPLETED"),
new EntityExpr("currentStatusId",
EntityOperator.NOT_EQUAL, "PRUN_CLOSED")),
UtilMisc.toList("createdDate DESC"));
> Assigned tasks not shown in WorkEffort/TaskList (not anymore)
> -------------------------------------------------------------
>
> Key: OFBIZ-768
> URL: https://issues.apache.org/jira/browse/OFBIZ-768
> Project: OFBiz (The Open for Business Project)
> Issue Type: Bug
> Components: workeffort
> Reporter: Eriks Dobelis
> Priority: Minor
>
> In WorkEffort/TaskList assigned tasks are not shown. This is due to code in
> WorkEffortServices.java, which assigns value to validWorkEfforts twice
> instead of merging the lists. This is in turn due to change submitted in
> r510412
> Code from WorkEffortServices.java
> validWorkEfforts =
> delegator.findByAnd("WorkEffortAndPartyAssign",
> UtilMisc.toList(new EntityExpr("partyId",
> EntityOperator.EQUALS, userLogin.get("partyId")),
> new EntityExpr("workEffortTypeId",
> EntityOperator.EQUALS, "TASK"),
> new EntityExpr("currentStatusId",
> EntityOperator.NOT_EQUAL, "CAL_DECLINED"),
> new EntityExpr("currentStatusId",
> EntityOperator.NOT_EQUAL, "CAL_DELEGATED"),
> new EntityExpr("currentStatusId",
> EntityOperator.NOT_EQUAL, "CAL_COMPLETED"),
> new EntityExpr("currentStatusId",
> EntityOperator.NOT_EQUAL, "CAL_CANCELLED")),
> UtilMisc.toList("priority"));
> validWorkEfforts =
> delegator.findByAnd("WorkEffortAndPartyAssign",
> UtilMisc.toList(new EntityExpr("partyId",
> EntityOperator.EQUALS, userLogin.get("partyId")),
> new EntityExpr("workEffortTypeId",
> EntityOperator.EQUALS, "PROD_ORDER_TASK"),
> new EntityExpr("currentStatusId",
> EntityOperator.NOT_EQUAL, "PRUN_CANCELLED "),
> new EntityExpr("currentStatusId",
> EntityOperator.NOT_EQUAL, "PRUN_COMPLETED"),
> new EntityExpr("currentStatusId",
> EntityOperator.NOT_EQUAL, "PRUN_CLOSED")),
> UtilMisc.toList("createdDate DESC"));
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.