From 5efddf6f5b287f83295e5bde066e7a5a707215e6 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 22 Aug 2024 11:01:39 +0100 Subject: [PATCH] Allow clear on country dropdown Signed-off-by: snipe --- resources/macros/macros.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/macros/macros.php b/resources/macros/macros.php index 1cc754b7cf..5d0813115e 100644 --- a/resources/macros/macros.php +++ b/resources/macros/macros.php @@ -35,7 +35,7 @@ Form::macro('countries', function ($name = 'country', $selected = null, $class = // Pull the autoglossonym array from the localizations translation file $countries_array = trans('localizations.countries'); - $select = ''; $select .= ''; foreach ($countries_array as $abbr => $country) { @@ -46,13 +46,13 @@ Form::macro('countries', function ($name = 'country', $selected = null, $class = } // Loop through the countries configured in the localization file - $select .= ' '; + $select .= ' '; } // If the country value doesn't exist in the array, add it as a new option and select it so we don't drop that data if (!in_array($selected, $countries_array)) { - $select .= ' '; + $select .= ' '; } $select .= '';