From d7eb3b9c5bf29f57b8fdcd50ece2e5dada41683c Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 21 May 2021 21:17:37 +0200 Subject: [PATCH] how to mark angels as active --- includes/pages/admin_active.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/pages/admin_active.php b/includes/pages/admin_active.php index a19d5712..cc224f15 100644 --- a/includes/pages/admin_active.php +++ b/includes/pages/admin_active.php @@ -51,7 +51,6 @@ function admin_active() if ($request->hasPostData('ack')) { State::query() - ->where('got_shirt', '=', false) ->where('got_shirt', '=', false) ->update(['active' => false]); @@ -74,7 +73,6 @@ function admin_active() ->leftJoin('Shifts', 'ShiftEntry.SID', '=', 'Shifts.SID') ->leftJoin('users_state', 'users.id', '=', 'users_state.user_id') ->where('users_state.arrived', '=', true) - ->where('users_state.force_active', '=', false) ->groupBy('users.id') ->orderByDesc('force_active') ->orderByDesc('shift_length') @@ -89,7 +87,6 @@ function admin_active() $user_nicks[] = User_Nick_render($usr, true); } - State::whereForceActive(true)->update(['active' => true]); engelsystem_log('These angels are active now: ' . join(', ', $user_nicks)); $msg = success(__('Marked angels.'), true);