From b39d02b416a5f5bf9e8c121228016091fd030cac Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 3 Oct 2022 17:05:30 +0300 Subject: [PATCH] Correct the available slot collection display, when any-provider is selected --- application/controllers/Booking.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/controllers/Booking.php b/application/controllers/Booking.php index 25ace397..764e453a 100755 --- a/application/controllers/Booking.php +++ b/application/controllers/Booking.php @@ -341,7 +341,11 @@ class Booking extends EA_Controller { $available_hours = array_merge($available_hours, $provider_available_hours); } - $response = array_unique(array_values($available_hours)); + $available_hours = array_unique(array_values($available_hours)); + + sort($available_hours); + + $response = $available_hours; } else {