From 3c99937712ae51da8641cd787378747f8b12864d Mon Sep 17 00:00:00 2001 From: Christian Burk Date: Fri, 16 Feb 2024 09:25:08 -0600 Subject: [PATCH] VACMS-17114: Accounts for false then true then false for online scheduling --- .../va_gov_post_api/src/Service/PostFacilityServiceVamc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docroot/modules/custom/va_gov_post_api/src/Service/PostFacilityServiceVamc.php b/docroot/modules/custom/va_gov_post_api/src/Service/PostFacilityServiceVamc.php index 6989f29f28..e298e56fac 100644 --- a/docroot/modules/custom/va_gov_post_api/src/Service/PostFacilityServiceVamc.php +++ b/docroot/modules/custom/va_gov_post_api/src/Service/PostFacilityServiceVamc.php @@ -434,8 +434,8 @@ protected function getServiceLocations(): array { ? $this->apptPhones : $this->getPhones($this->apptPhoneType, $location->get('field_other_phone_numbers')->referencedEntities()); - // Set the online scheduling value to the yes for the service. - $this->isOnlineSchedulingAvail = ($this->isOnlineSchedulingAvail) + // Set the online scheduling value to yes for the service if so chosen. + $this->isOnlineSchedulingAvail = ($this->isOnlineSchedulingAvail !== 'false') ? $this->isOnlineSchedulingAvail : $this->getOnlineScheduling($location->get('field_online_scheduling_avail')->value);