diff --git a/public/modules/custom/asu_content/src/Entity/Project.php b/public/modules/custom/asu_content/src/Entity/Project.php index 17a6ff09..b77f41c0 100644 --- a/public/modules/custom/asu_content/src/Entity/Project.php +++ b/public/modules/custom/asu_content/src/Entity/Project.php @@ -110,6 +110,9 @@ public function getApplicationUrl($apartmentId = NULL, $apartmentStateOfSale = N $langcode = \Drupal::languageManager()->getDefaultLanguage()->getId(); $baseurl = $baseurl . '/' . $langcode; $apartmentType = ''; + if ($apartmentStateOfSale) { + $apartmentStateOfSale = strtoupper($apartmentStateOfSale); + } $isOpenForApplications = $apartmentStateOfSale == 'OPEN_FOR_APPLICATIONS'; $isFreeForReservations = $apartmentStateOfSale == 'FREE_FOR_RESERVATIONS';