From ba2e0b90e7428f9f1cd942cc0d967a6334057260 Mon Sep 17 00:00:00 2001 From: Andrey Baklanov Date: Tue, 3 Feb 2026 10:53:21 +0200 Subject: [PATCH] fix app url - case sensitive --- public/modules/custom/asu_content/src/Entity/Project.php | 3 +++ 1 file changed, 3 insertions(+) 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';