mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Fix projectmanager link does not get set for new timesheet entry
This commit is contained in:
parent
6b7d046564
commit
f7b995a24b
@ -338,7 +338,6 @@ class timesheet_ui extends timesheet_bo
|
|||||||
switch ($link_app)
|
switch ($link_app)
|
||||||
{
|
{
|
||||||
case 'projectmanager':
|
case 'projectmanager':
|
||||||
$content['pm_id'] = $link_id;
|
|
||||||
$links[] = $link_id;
|
$links[] = $link_id;
|
||||||
// fall-through;
|
// fall-through;
|
||||||
default:
|
default:
|
||||||
@ -378,7 +377,7 @@ class timesheet_ui extends timesheet_bo
|
|||||||
{
|
{
|
||||||
$preserv['old_pm_id'] = array_shift($links);
|
$preserv['old_pm_id'] = array_shift($links);
|
||||||
}
|
}
|
||||||
if (!isset($this->data['pm_id']) && $preserv['old_pm_id'])
|
if ((!isset($this->data['pm_id']) || $this->data['pm_id'] === false) && $preserv['old_pm_id'])
|
||||||
{
|
{
|
||||||
$content['pm_id'] = $preserv['old_pm_id'];
|
$content['pm_id'] = $preserv['old_pm_id'];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user