From 02ee581202900be76889524c2b1e871e33c62cd2 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 7 Apr 2020 22:01:08 +0200 Subject: [PATCH] User view: Show double assigned shifts closes #674 (Number of shifts differs in web interface and API response) --- includes/view/User_view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/view/User_view.php b/includes/view/User_view.php index fb65d2c7..3a12c178 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -444,7 +444,7 @@ function User_view_myshifts( $myshifts_table = []; $timeSum = 0; foreach ($shifts as $shift) { - $key = $shift['start'] . '-shift-' . $shift['SID']; + $key = $shift['start'] . '-shift-' . $shift['SID'] . '-' . $shift['id']; $myshifts_table[$key] = User_view_myshift($shift, $user_source, $its_me); if (!$shift['freeloaded']) {