mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-28 01:22:25 +03:00
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
|
@ -109,6 +109,8 @@ class Booking extends EA_Controller {
|
||||||
|
|
||||||
$timezones = $this->timezones->to_array();
|
$timezones = $this->timezones->to_array();
|
||||||
$grouped_timezones = $this->timezones->to_grouped_array();
|
$grouped_timezones = $this->timezones->to_grouped_array();
|
||||||
|
|
||||||
|
$appointment_hash = html_vars('appointment_hash');
|
||||||
|
|
||||||
if ( ! empty($appointment_hash))
|
if ( ! empty($appointment_hash))
|
||||||
{
|
{
|
||||||
|
@ -240,9 +242,13 @@ class Booking extends EA_Controller {
|
||||||
* Render the booking page and display the selected appointment.
|
* Render the booking page and display the selected appointment.
|
||||||
*
|
*
|
||||||
* This method will call the "index" callback to handle the page rendering.
|
* 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();
|
$this->index();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue