Skip to content
Permalink
Browse files

found an issue where the start date was being used for both the start…

… and end date instead of calculating a new end date as expected;

resolves http://bugs.web2project.net/view.php?id=1255;
  • Loading branch information
caseysoftware committed Jun 9, 2013
1 parent 0fd3361 commit 891c67a11f5ba75215e687b8a153d0a1a41b03d7
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/tasks/tasks.class.php
@@ -554,8 +554,8 @@ public function importTasks($from_project_id, $to_project_id, $project_start_dat
$new_start_date->next_working_day();
$orig_task['task_start_date'] = $new_start_date->format(FMT_DATETIME_MYSQL);

$new_start_date->addDuration($orig_task['task_duration'], $orig_task['task_duration_type']);
$orig_task['task_end_date'] = $new_start_date->format(FMT_DATETIME_MYSQL);
$new_end_date = $new_start_date->addDuration($orig_task['task_duration'], $orig_task['task_duration_type']);
$orig_task['task_end_date'] = $new_end_date->format(FMT_DATETIME_MYSQL);

$newTask->bind($orig_task);
$result = $newTask->store();

0 comments on commit 891c67a

Please sign in to comment.
You can’t perform that action at this time.