mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
fix not linked calendar\'s project links to timesheet, when creating timesheet by multi-select entries
This commit is contained in:
parent
45201e9c29
commit
0c9c6b6afd
@ -698,6 +698,20 @@ class calendar_uilist extends calendar_ui
|
||||
}
|
||||
$timesheet_bo->data = array();
|
||||
$err = $timesheet_bo->save($timesheet);
|
||||
|
||||
//get the project manager linked to the calnedar entry
|
||||
$calApp_links = egw_link::get_links('calendar', $event['id']);
|
||||
foreach ($calApp_links as $l_app)
|
||||
{
|
||||
if ($l_app['app'] == 'projectmanager')
|
||||
{
|
||||
$prj_links = $l_app;
|
||||
//Links timesheet to projectmanager
|
||||
egw_link::link('timesheet', $timesheet_bo->data['ts_id'], 'projectmanager', $prj_links['id']);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if(!$err)
|
||||
{
|
||||
$success++;
|
||||
|
Loading…
Reference in New Issue
Block a user