better logging of needed angeltypes for shifts and rooms

This commit is contained in:
msquare 2017-12-17 13:22:29 +01:00
parent b2602f8936
commit 769d8c4af9
1 changed files with 3 additions and 1 deletions

View File

@ -149,8 +149,10 @@ function shift_edit_controller()
$needed_angel_types_info = [];
foreach ($needed_angel_types as $type_id => $count) {
NeededAngelType_add($shift_id, $type_id, null, $count);
if($count > 0) {
$needed_angel_types_info[] = $angeltypes[$type_id] . ': ' . $count;
}
}
engelsystem_log(
'Updated shift \'' . $shifttypes[$shifttype_id] . ', ' . $title