Commit 92dbe206 authored by Christian Giupponi's avatar Christian Giupponi

Fixed a bug that checked the last radio even if wasn't the right one

parent ea339979
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
name="{{ $settingName }}" name="{{ $settingName }}"
type="radio" type="radio"
class="flat-blue" class="flat-blue"
{{ isset($dbSettings[$settingName]) && (bool)$dbSettings[$settingName]->plainValue == $value ? 'checked' : '' }} {{ isset($dbSettings[$settingName]) && $dbSettings[$settingName]->plainValue == $value ? 'checked' : '' }}
value="{{ $value }}" /> value="{{ $value }}" />
{{ trans($optionName) }} {{ trans($optionName) }}
</label> </label>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
name="{{ $settingName . "[$lang]" }}" name="{{ $settingName . "[$lang]" }}"
type="radio" type="radio"
class="flat-blue" class="flat-blue"
{{ isset($dbSettings[$settingName]) && (bool)$oldValue == $value ? 'checked' : '' }} {{ isset($dbSettings[$settingName]) && $oldValue == $value ? 'checked' : '' }}
value="{{ $value }}" /> value="{{ $value }}" />
{{ trans($optionName) }} {{ trans($optionName) }}
</label> </label>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment