Skip to content

Commit b332963

Browse files
authored
Fix: Allow empty strings for event settings maps_url (#623)
1 parent 8ab7eb0 commit b332963

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/app/Services/Application/Handlers/EventSettings/PartialUpdateEventSettingsHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ public function handle(PartialUpdateEventSettingsDTO $eventSettingsDTO): EventSe
6565

6666
'order_timeout_in_minutes' => $eventSettingsDTO->settings['order_timeout_in_minutes'] ?? $existingSettings->getOrderTimeoutInMinutes(),
6767
'website_url' => $eventSettingsDTO->settings['website_url'] ?? $existingSettings->getWebsiteUrl(),
68-
'maps_url' => $eventSettingsDTO->settings['maps_url'] ?? $existingSettings->getMapsUrl(),
68+
'maps_url' => array_key_exists('maps_url', $eventSettingsDTO->settings)
69+
? $eventSettingsDTO->settings['maps_url']
70+
: $existingSettings->getMapsUrl(),
6971
'location_details' => $locationDetails,
7072
'is_online_event' => $eventSettingsDTO->settings['is_online_event'] ?? $existingSettings->getIsOnlineEvent(),
7173
'online_event_connection_details' => array_key_exists('online_event_connection_details', $eventSettingsDTO->settings)

0 commit comments

Comments
 (0)