From d95e48889356eab85aff5ae7121aeb18115aef95 Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 29 Dec 2017 17:37:08 +0100 Subject: [PATCH] add work log creator infor --- includes/view/User_view.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/view/User_view.php b/includes/view/User_view.php index b1521ff8..82df1851 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -477,7 +477,12 @@ function User_view_worklog($worklog, $admin_user_worklog_privilege) { 'duration' => '' . $worklog['work_hours'] . ' h', 'room' => '', 'shift_info' => _('Work log entry'), - 'comment' => $worklog['comment'], + 'comment' => $worklog['comment'] . '
' + . sprintf( + _('Added by %s at %s'), + User_Nick_render(User($worklog['user_id'])), + date('Y-m-d H:i', $worklog['created_timestamp']) + ), 'actions' => $actions ]; }