Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6842

ProjectMgr: GanttChart fails, in case of dependencies for tasks

    Details

      Description

      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:

      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 ++;
        }
      }
      

        Activity

        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Thanks Ralph,

        Your patch is in
        trunk r1725257
        R15.12 r1725259
        R14.12 r1725260
        R12.04 r1725261

        Show
        jacques.le.roux Jacques Le Roux added a comment - Thanks Ralph, Your patch is in trunk r1725257 R15.12 r1725259 R14.12 r1725260 R12.04 r1725261

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            AgM3 Ralf
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development