User view: Show double assigned shifts

closes #674 (Number of shifts differs in web interface and API response)
This commit is contained in:
Igor Scheller 2020-04-07 22:01:08 +02:00
parent dfcacaa331
commit 02ee581202
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ function User_view_myshifts(
$myshifts_table = []; $myshifts_table = [];
$timeSum = 0; $timeSum = 0;
foreach ($shifts as $shift) { 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); $myshifts_table[$key] = User_view_myshift($shift, $user_source, $its_me);
if (!$shift['freeloaded']) { if (!$shift['freeloaded']) {