change logging of needed angeltypes for created shifts
This commit is contained in:
parent
1c77c45bcf
commit
86e41e2949
|
@ -308,7 +308,6 @@ function admin_shifts()
|
||||||
redirect(page_link_to('admin_shifts'));
|
redirect(page_link_to('admin_shifts'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$needed_angel_types_info = [];
|
|
||||||
foreach ($session->get('admin_shifts_shifts', []) as $shift) {
|
foreach ($session->get('admin_shifts_shifts', []) as $shift) {
|
||||||
$shift['URL'] = null;
|
$shift['URL'] = null;
|
||||||
$shift['PSID'] = null;
|
$shift['PSID'] = null;
|
||||||
|
@ -321,6 +320,7 @@ function admin_shifts()
|
||||||
. ' to ' . date('Y-m-d H:i', $shift['end'])
|
. ' to ' . date('Y-m-d H:i', $shift['end'])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$needed_angel_types_info = [];
|
||||||
foreach ($session->get('admin_shifts_types', []) as $type_id => $count) {
|
foreach ($session->get('admin_shifts_types', []) as $type_id => $count) {
|
||||||
$angel_type_source = DB::selectOne('
|
$angel_type_source = DB::selectOne('
|
||||||
SELECT *
|
SELECT *
|
||||||
|
@ -341,9 +341,9 @@ function admin_shifts()
|
||||||
$needed_angel_types_info[] = $angel_type_source['name'] . ': ' . $count;
|
$needed_angel_types_info[] = $angel_type_source['name'] . ': ' . $count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
engelsystem_log('Shift needs following angel types: ' . join(', ', $needed_angel_types_info));
|
||||||
}
|
}
|
||||||
|
|
||||||
engelsystem_log('Shift needs following angel types: ' . join(', ', $needed_angel_types_info));
|
|
||||||
success('Schichten angelegt.');
|
success('Schichten angelegt.');
|
||||||
redirect(page_link_to('admin_shifts'));
|
redirect(page_link_to('admin_shifts'));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue