Fixed shifts bulk deletion
This commit is contained in:
parent
0188ed5562
commit
3ca39dc8e1
|
@ -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 . ')');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue