No matter how I set the dates up, the gantt view always says " *END DATE MISSING* " and only fills in one day with the gantt bar. I have tried editing the node, dragging the end of the bar longer, changing the way the date field is displayed/input widget and nothing can get the view to recognize an end date for the project.

Could you maybe split out project start and project end dates in the view settings, as has been done for tasks? I think the issue is coming from there being only one date field for both values?

Comments

vorapoap’s picture

I found that there is "commented" code.
If you uncomment this, project end date will be calculated base on child task.
just uncomment the last if ($parent_id)....

  function check_duration($task, $parent_id = '') {
    if (!isset($this->tasks[$task['id']]['duration'])) {
      $this->calculate_duration($task['id']);
    }

    if (isset($task['children'])) {
      foreach ($task['children'] as $child) {
        $this->check_duration($child, $task['id']);
      }
    }

    if ($parent_id) {
      $duration = $this->tasks[$task['id']]['duration'];
      $parent_duration = $this->tasks[$parent_id]['duration'];

      if ($parent_duration < $duration) {
        $this->tasks[$parent_id]['duration'] = $duration;
        $this->tasks[$parent_id]['duration_modified'] = TRUE;
      }
    }
  }
alex72rm’s picture

Version: 7.x-2.0-alpha1 » 7.x-2.0-rc1

Dear all,

the code that should be commented doesn't exist in the rc1 anymore.
Anyway, the *END DATE MISSING* statement is always there, for any task and in the project itself, despite the end date is given.