fix shift creation for shifttypes

This commit is contained in:
Philip Häusler 2014-12-26 02:34:57 +01:00
parent 9cabdb1d78
commit fc4a5e0e7a
1 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ function admin_shifts() {
'start' => $shift_start,
'end' => $shift_end,
'RID' => $rid,
'name' => $title,
'title' => $title,
'shifttype_id' => $shifttype_id
);
@ -269,7 +269,7 @@ function admin_shifts() {
if ($shift_id === false)
engelsystem_error('Unable to create shift.');
engelsystem_log("Shift created: " . $shift['name'] . " from " . date("Y-m-d H:i", $shift['start']) . " to " . date("Y-m-d H:i", $shift['end']));
engelsystem_log("Shift created: " . $shifttypes[$shift['shifttype_id']] . " with title " . $shift['title'] . " from " . date("Y-m-d H:i", $shift['start']) . " to " . date("Y-m-d H:i", $shift['end']));
$needed_angel_types_info = array();
foreach ($_SESSION['admin_shifts_types'] as $type_id => $count) {
$angel_type_source = sql_select("SELECT * FROM `AngelTypes` WHERE `id`=" . sql_escape($type_id) . " LIMIT 1");