diff --git a/includes/pages/admin_shifts.php b/includes/pages/admin_shifts.php index 8f279b10..8ff76b82 100644 --- a/includes/pages/admin_shifts.php +++ b/includes/pages/admin_shifts.php @@ -549,7 +549,7 @@ function admin_shifts_history(): string $request = request(); $transactionId = $request->postData('transaction_id'); if ($request->hasPostData('delete') && $transactionId) { - $shifts = Shift::whereTransactionId($transactionId); + $shifts = Shift::whereTransactionId($transactionId)->get(); engelsystem_log('Deleting ' . count($shifts) . ' shifts (transaction id ' . $transactionId . ')');