Display "Not Found" booking message when rescheduling with an appointment hash that does not exist.
This commit is contained in:
parent
88b8742b10
commit
6cd3179caa
1 changed files with 7 additions and 1 deletions
|
@ -110,6 +110,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))
|
||||
{
|
||||
// Load the appointments data and enable the manage mode of the booking page.
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue