Unverified Commit 84e91910 authored by Nicolas Widart's avatar Nicolas Widart Committed by GitHub

Merge pull request #573 from ChristianGiupponi/3.0

Fixed a bug that checked the last radio even if wasn't the right one
parents 0562bc8d 92dbe206
...@@ -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