From 4e39762cc2e87e834c3361fc8df6062c14de375e Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 20 Jul 2016 13:04:57 -0600 Subject: [PATCH] When adjusting infologs dates to create a project from template, take real start date into account too, if set. --- infolog/inc/class.infolog_datasource.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/infolog/inc/class.infolog_datasource.inc.php b/infolog/inc/class.infolog_datasource.inc.php index 959350e565..6b9813a4c0 100644 --- a/infolog/inc/class.infolog_datasource.inc.php +++ b/infolog/inc/class.infolog_datasource.inc.php @@ -123,7 +123,12 @@ class infolog_datasource extends datasource } // Apply date offsets, if any - $map = array('planned_start' => 'info_startdate', 'planned_end' => 'info_enddate', 'real_end' => 'info_datecompleted'); + $map = array( + 'planned_start' => 'info_startdate', + 'planned_end' => 'info_enddate', + 'real_start' => 'info_startdate', + 'real_end' => 'info_datecompleted' + ); foreach($map as $offset_field => $info_field) { if($date_offsets[$offset_field] && $info[$info_field])