mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
run same logic for timer timesheets started on an other app's entry, as used for timesheets manually booked on them
This commit is contained in:
parent
b1538e6dd2
commit
693cf1f116
@ -112,11 +112,19 @@ class timesheet_ui extends timesheet_bo
|
||||
{
|
||||
if (!empty($event['tse_app']) && $event['tse_app'] !== TIMESHEET_APP && !empty($event['tse_app_id']))
|
||||
{
|
||||
if (!isset($this->data['link_to']['to_id']))
|
||||
if (!isset($_REQUEST['link_app']))
|
||||
{
|
||||
$this->data['link_to']['to_id'] = $this->data['ts_id'] ?? [];
|
||||
$_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']);
|
||||
}
|
||||
Api\Link::link(TIMESHEET_APP, $this->data['link_to']['to_id'], $event['tse_app'], $event['tse_app_id']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user