mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
If timesheet project changes, update the project title field to match
This commit is contained in:
parent
8c9bbcf777
commit
327657b86b
@ -605,6 +605,11 @@ class timesheet_bo extends Api\Storage
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// Update ts_project to match project
|
||||||
|
if ($this->pm_integration == 'full' && $old && $old['pm_id'] != $new['pm_id'])
|
||||||
|
{
|
||||||
|
$new['ts_title'] = $new['pm_id'] ? Link::title('projectmanager', $new['pm_id']) : '';
|
||||||
|
}
|
||||||
|
|
||||||
// Check for restore of deleted contact, restore held links
|
// Check for restore of deleted contact, restore held links
|
||||||
if($old && $old['ts_status'] == self::DELETED_STATUS && $new['ts_status'] != self::DELETED_STATUS)
|
if($old && $old['ts_status'] == self::DELETED_STATUS && $new['ts_status'] != self::DELETED_STATUS)
|
||||||
|
Loading…
Reference in New Issue
Block a user