From b069a938c6721ab5adddcbec4cff858ded6f0e1e Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 9 Oct 2018 20:38:13 +0200 Subject: Changed user_link and some other user functions to use the user id --- includes/view/ShiftEntry_view.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/view/ShiftEntry_view.php') diff --git a/includes/view/ShiftEntry_view.php b/includes/view/ShiftEntry_view.php index 7884e404..1d6ba3a3 100644 --- a/includes/view/ShiftEntry_view.php +++ b/includes/view/ShiftEntry_view.php @@ -22,7 +22,7 @@ function ShiftEntry_delete_view_admin($shiftEntry, $shift, $angeltype, $signoff_ $angeltype['name'] ), true), buttons([ - button(user_link($signoff_user), glyph('remove') . __('cancel')), + button(user_link($signoff_user['UID']), glyph('remove') . __('cancel')), button(shift_entry_delete_link($shiftEntry, [ 'continue' => 1 ]), glyph('ok') . __('delete'), 'btn-danger') @@ -51,7 +51,7 @@ function ShiftEntry_delete_view($shiftEntry, $shift, $angeltype, $signoff_user) $angeltype['name'] ), true), buttons([ - button(user_link($signoff_user), glyph('remove') . __('cancel')), + button(user_link($signoff_user['UID']), glyph('remove') . __('cancel')), button(shift_entry_delete_link($shiftEntry, [ 'continue' => 1 ]), glyph('ok') . __('delete'), 'btn-danger') -- cgit v1.3.1