diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index c9b1d2541c..378b1b6859 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -433,8 +433,9 @@ class timesheet_ui extends timesheet_bo { $readonlys['ts_owner'] = true; } - // in view mode, we need to add the owner, if it does not exist, otherwise it's displayed empty - if ($view && $content['ts_owner'] && !isset($edit_grants[$content['ts_owner']])) + // in view mode or when editing existing entries, we need to add the owner + // if it does not exist, otherwise it's displayed empty or missing + if (($view || $content['ts_id']) && $content['ts_owner'] && !isset($edit_grants[$content['ts_owner']])) { $edit_grants[$content['ts_owner']] = Api\Accounts::username($content['ts_owner']); }