mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-30 03:43:40 +01:00
fix not linked calendar's project links to timesheet, when creating timesheet by multi-select entries
This commit is contained in:
parent
10f8c8e1ae
commit
ab3ac17367
@ -710,6 +710,20 @@ class calendar_uilist extends calendar_ui
|
|||||||
}
|
}
|
||||||
$timesheet_bo->data = array();
|
$timesheet_bo->data = array();
|
||||||
$err = $timesheet_bo->save($timesheet);
|
$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)
|
if(!$err)
|
||||||
{
|
{
|
||||||
$success++;
|
$success++;
|
||||||
|
Loading…
Reference in New Issue
Block a user