add freeload info to shiftentry update log

issue #28
This commit is contained in:
Felix Favre 2014-12-12 23:40:13 +01:00
parent 5b3d0d302f
commit e9bbd967ff
1 changed files with 24 additions and 24 deletions

View File

@ -66,7 +66,7 @@ function user_myshifts() {
if ($result === false)
engelsystem_error('Unable to update shift entr.');
engelsystem_log("Updated " . User_Nick_render($user_source) . "'s shift " . $shift['name'] . " from " . date("y-m-d H:i", $shift['start']) . " to " . date("y-m-d H:i", $shift['end']) . " with comment " . $comment);
engelsystem_log("Updated " . User_Nick_render($user_source) . "'s shift " . $shift['name'] . " from " . date("y-m-d H:i", $shift['start']) . " to " . date("y-m-d H:i", $shift['end']) . " with comment " . $comment . ". Freeloaded: " . ($freeloaded ? "YES Comment: " . $freeload_comment : "NO"));
success(_("Shift saved."));
redirect(page_link_to('users') . '&action=view&user_id=' . $shifts_user['UID']);
}