Fixed shifts bulk deletion

This commit is contained in:
Igor Scheller 2023-01-25 00:40:31 +01:00
parent 0188ed5562
commit 3ca39dc8e1
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ function admin_shifts_history(): string
$request = request(); $request = request();
$transactionId = $request->postData('transaction_id'); $transactionId = $request->postData('transaction_id');
if ($request->hasPostData('delete') && $transactionId) { if ($request->hasPostData('delete') && $transactionId) {
$shifts = Shift::whereTransactionId($transactionId); $shifts = Shift::whereTransactionId($transactionId)->get();
engelsystem_log('Deleting ' . count($shifts) . ' shifts (transaction id ' . $transactionId . ')'); engelsystem_log('Deleting ' . count($shifts) . ' shifts (transaction id ' . $transactionId . ')');