From 4684d708fb93304379314bea24ca8d5648877108 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Mon, 28 Dec 2015 17:47:02 +0100 Subject: better shift cancel messages and workflow --- includes/pages/user_myshifts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index 9e76636c..278a7134 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -22,7 +22,7 @@ function user_myshifts() { if ($_REQUEST['reset'] == "ack") { User_reset_api_key($user); success(_("Key changed.")); - redirect(page_link_to('user_myshifts')); + redirect(page_link_to('users') . '&action=view&user_id=' . $shifts_user['UID']); } return page_with_title(_("Reset API key"), array( error(_("If you reset the key, the url to your iCal- and JSON-export and your atom feed changes! You have to update it in every application using one of these exports."), true), @@ -94,7 +94,7 @@ function user_myshifts() { $shifttype = ShiftType($shift['shifttype_id']); engelsystem_log("Deleted own shift: " . $shifttype['name'] . " at " . $room['Name'] . " from " . date("Y-m-d H:i", $shift['start']) . " to " . date("Y-m-d H:i", $shift['end']) . " as " . $angeltype['name']); - success(_("You have been signed off from the shift.")); + success(_("Shift canceled.")); } else error(_("It's too late to sign yourself off the shift. If neccessary, ask the dispatcher to do so.")); } else -- cgit v1.2.3-54-g00ecf