mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-08 23:05:10 +02:00
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:
@ -111,21 +111,10 @@ class timesheet_ui extends timesheet_bo
|
||||
foreach($pending as $event)
|
||||
{
|
||||
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']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!empty($this->data['events']))
|
||||
|
Reference in New Issue
Block a user