From 6cd3179caa4197348bdee9508fee8ee0f38dfaae Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 19 Jan 2022 10:25:28 +0100 Subject: [PATCH] Display "Not Found" booking message when rescheduling with an appointment hash that does not exist. --- application/controllers/Booking.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/controllers/Booking.php b/application/controllers/Booking.php index 8a6a69fa..8307c969 100755 --- a/application/controllers/Booking.php +++ b/application/controllers/Booking.php @@ -109,6 +109,8 @@ class Booking extends EA_Controller { $timezones = $this->timezones->to_array(); $grouped_timezones = $this->timezones->to_grouped_array(); + + $appointment_hash = html_vars('appointment_hash'); if ( ! empty($appointment_hash)) { @@ -240,9 +242,13 @@ class Booking extends EA_Controller { * Render the booking page and display the selected appointment. * * This method will call the "index" callback to handle the page rendering. + * + * @param string $appointment_hash */ - public function reschedule() + public function reschedule($appointment_hash) { + html_vars(['appointment_hash' => $appointment_hash]); + $this->index(); }