Create shifts: Default to manually select angel types
This commit is contained in:
parent
3b0ba94c3d
commit
1245d81ad8
|
@ -28,7 +28,7 @@ function admin_shifts()
|
||||||
$start = Carbon::createTimestampFromDatetime(date('Y-m-d') . 'T00:00');
|
$start = Carbon::createTimestampFromDatetime(date('Y-m-d') . 'T00:00');
|
||||||
$end = $start;
|
$end = $start;
|
||||||
$mode = '';
|
$mode = '';
|
||||||
$angelmode = '';
|
$angelmode = 'manually';
|
||||||
$length = '';
|
$length = '';
|
||||||
$change_hours = [];
|
$change_hours = [];
|
||||||
$title = '';
|
$title = '';
|
||||||
|
@ -150,7 +150,6 @@ function admin_shifts()
|
||||||
if ($request->input('angelmode') == 'location') {
|
if ($request->input('angelmode') == 'location') {
|
||||||
$angelmode = 'location';
|
$angelmode = 'location';
|
||||||
} elseif ($request->input('angelmode') == 'manually') {
|
} elseif ($request->input('angelmode') == 'manually') {
|
||||||
$angelmode = 'manually';
|
|
||||||
foreach ($types as $type) {
|
foreach ($types as $type) {
|
||||||
if (preg_match('/^\d+$/', trim($request->input('type_' . $type['id'], 0)))) {
|
if (preg_match('/^\d+$/', trim($request->input('type_' . $type['id'], 0)))) {
|
||||||
$needed_angel_types[$type['id']] = trim($request->input('type_' . $type['id'], 0));
|
$needed_angel_types[$type['id']] = trim($request->input('type_' . $type['id'], 0));
|
||||||
|
|
Loading…
Reference in New Issue