mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
When adjusting infologs dates to create a project from template, take real start date into account too, if set.
This commit is contained in:
parent
a535222bc2
commit
4e39762cc2
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user