From 92dbe2068424f42f5f53ff53dc6a616c3131a735 Mon Sep 17 00:00:00 2001 From: Christian Giupponi Date: Tue, 21 Aug 2018 09:39:50 +0200 Subject: [PATCH] Fixed a bug that checked the last radio even if wasn't the right one --- .../Setting/Resources/views/admin/fields/plain/radio.blade.php | 2 +- .../Resources/views/admin/fields/translatable/radio.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Setting/Resources/views/admin/fields/plain/radio.blade.php b/Modules/Setting/Resources/views/admin/fields/plain/radio.blade.php index f53eb5d8f..0a9454e52 100644 --- a/Modules/Setting/Resources/views/admin/fields/plain/radio.blade.php +++ b/Modules/Setting/Resources/views/admin/fields/plain/radio.blade.php @@ -5,7 +5,7 @@ name="{{ $settingName }}" type="radio" class="flat-blue" - {{ isset($dbSettings[$settingName]) && (bool)$dbSettings[$settingName]->plainValue == $value ? 'checked' : '' }} + {{ isset($dbSettings[$settingName]) && $dbSettings[$settingName]->plainValue == $value ? 'checked' : '' }} value="{{ $value }}" /> {{ trans($optionName) }} diff --git a/Modules/Setting/Resources/views/admin/fields/translatable/radio.blade.php b/Modules/Setting/Resources/views/admin/fields/translatable/radio.blade.php index 497d6f7f9..a1068354c 100644 --- a/Modules/Setting/Resources/views/admin/fields/translatable/radio.blade.php +++ b/Modules/Setting/Resources/views/admin/fields/translatable/radio.blade.php @@ -6,7 +6,7 @@ name="{{ $settingName . "[$lang]" }}" type="radio" class="flat-blue" - {{ isset($dbSettings[$settingName]) && (bool)$oldValue == $value ? 'checked' : '' }} + {{ isset($dbSettings[$settingName]) && $oldValue == $value ? 'checked' : '' }} value="{{ $value }}" /> {{ trans($optionName) }}