forked from extern/egroupware
only consider last linked entry, for timers created on an app entry
as rest of code wont deal with multiple ones
This commit is contained in:
parent
ee52509fca
commit
6a93275d93
@ -112,19 +112,8 @@ class timesheet_ui extends timesheet_bo
|
||||
{
|
||||
if (!empty($event['tse_app']) && $event['tse_app'] !== TIMESHEET_APP && !empty($event['tse_app_id']))
|
||||
{
|
||||
if (!isset($_REQUEST['link_app']))
|
||||
{
|
||||
$_REQUEST['link_app'] = $event['tse_app'];
|
||||
$_REQUEST['link_id'] = $event['tse_app_id'];
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!isset($this->data['link_to']['to_id']))
|
||||
{
|
||||
$this->data['link_to']['to_id'] = $this->data['ts_id'] ?? [];
|
||||
}
|
||||
Api\Link::link(TIMESHEET_APP, $this->data['link_to']['to_id'], $event['tse_app'], $event['tse_app_id']);
|
||||
}
|
||||
$_REQUEST['link_app'] = $event['tse_app'];
|
||||
$_REQUEST['link_id'] = $event['tse_app_id'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user