From 3ca39dc8e1fb81db78d9b6b6a2210fc04d06bf67 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 25 Jan 2023 00:40:31 +0100 Subject: [PATCH] Fixed shifts bulk deletion --- includes/pages/admin_shifts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 . ')');