add work log creator infor

This commit is contained in:
msquare 2017-12-29 17:37:08 +01:00
parent be3652b44a
commit d95e488893
1 changed files with 6 additions and 1 deletions

View File

@ -477,7 +477,12 @@ function User_view_worklog($worklog, $admin_user_worklog_privilege) {
'duration' => '<b>' . $worklog['work_hours'] . ' h</b>',
'room' => '',
'shift_info' => _('Work log entry'),
'comment' => $worklog['comment'],
'comment' => $worklog['comment'] . '<br>'
. sprintf(
_('Added by %s at %s'),
User_Nick_render(User($worklog['user_id'])),
date('Y-m-d H:i', $worklog['created_timestamp'])
),
'actions' => $actions
];
}