[
https://issues.apache.org/jira/browse/OFBIZ-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux closed OFBIZ-6842.
----------------------------------
Resolution: Fixed
Fix Version/s: Upcoming Branch
12.04.06
14.12.01
Thanks Ralph,
Your patch is in
trunk r1725257
R15.12 r1725259
R14.12 r1725260
R12.04 r1725261
> ProjectMgr: GanttChart fails, in case of dependencies for tasks
> ---------------------------------------------------------------
>
> Key: OFBIZ-6842
> URL:
https://issues.apache.org/jira/browse/OFBIZ-6842> Project: OFBiz
> Issue Type: Bug
> Components: specialpurpose/projectmgr
> Affects Versions: 12.04.05
> Reporter: Ralf
> Assignee: Jacques Le Roux
> Fix For: 14.12.01, 12.04.06, Upcoming Branch
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> the problen is in line 127:
> taskInfo.preDecessor = latestTaskIds
> This line causes brackets around ids (e.g.: [10098] )
> And these brackets cannot be processed by jsgantt.
> So in case of dependencies the ganttchart will not be displayed.
> To fix it, the ids could be processed in a loop:
> {code}
> count = 0;
> if (UtilValidate.isNotEmpty(latestTaskIds)) {
> taskInfo.preDecessor = "";
> for (i in latestTaskIds) {
> if (count>0) {
> taskInfo.preDecessor = taskInfo.preDecessor +", " + i;
> } else {
> taskInfo.preDecessor = taskInfo.preDecessor + i;
> }
> count ++;
> }
> }
> {code}
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)