From 1245d81ad8391a118e6b2595e8cbf7f460376f98 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Mon, 18 Jul 2022 19:52:45 +0200 Subject: [PATCH] Create shifts: Default to manually select angel types --- includes/pages/admin_shifts.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/pages/admin_shifts.php b/includes/pages/admin_shifts.php index bb6eda00..c100053d 100644 --- a/includes/pages/admin_shifts.php +++ b/includes/pages/admin_shifts.php @@ -28,7 +28,7 @@ function admin_shifts() $start = Carbon::createTimestampFromDatetime(date('Y-m-d') . 'T00:00'); $end = $start; $mode = ''; - $angelmode = ''; + $angelmode = 'manually'; $length = ''; $change_hours = []; $title = ''; @@ -150,7 +150,6 @@ function admin_shifts() if ($request->input('angelmode') == 'location') { $angelmode = 'location'; } elseif ($request->input('angelmode') == 'manually') { - $angelmode = 'manually'; foreach ($types as $type) { if (preg_match('/^\d+$/', trim($request->input('type_' . $type['id'], 0)))) { $needed_angel_types[$type['id']] = trim($request->input('type_' . $type['id'], 0));