Skip to content

Commit

Permalink
VACMS-17114: Accounts for false then true then false for online sched…
Browse files Browse the repository at this point in the history
…uling
  • Loading branch information
omahane committed Feb 16, 2024
1 parent f590996 commit 3c99937
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3c99937

Please sign in to comment.