mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
* Calendar: passing links to timesheet, when creating a timesheet on an event
This commit is contained in:
parent
cb9c69e391
commit
f5a1cd5ded
@ -2009,6 +2009,15 @@ class calendar_bo
|
|||||||
$set['ts_quantity'] = ($event['end'] - $event['start']) / 3600;
|
$set['ts_quantity'] = ($event['end'] - $event['start']) / 3600;
|
||||||
$set['end_time'] = null; // unset end-time
|
$set['end_time'] = null; // unset end-time
|
||||||
$set['cat_id'] = (int)$event['category'];
|
$set['cat_id'] = (int)$event['category'];
|
||||||
|
|
||||||
|
foreach(egw_link::get_links('calendar',$id,'','link_lastmod DESC',true) as $link)
|
||||||
|
{
|
||||||
|
if ($link['app'] != 'timesheet' && $link['app'] != egw_link::VFS_APPNAME)
|
||||||
|
{
|
||||||
|
$set['link_app'][] = $link['app'];
|
||||||
|
$set['link_id'][] = $link['id'];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $set;
|
return $set;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user