Create shifts: Default to manually select angel types

This commit is contained in:
Igor Scheller 2022-07-18 19:52:45 +02:00
parent 3b0ba94c3d
commit 1245d81ad8
1 changed files with 1 additions and 2 deletions

View File

@ -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));