Skip to content

Commit

Permalink
Fixed a bug that checked the last radio even if wasn't the right one
Browse files Browse the repository at this point in the history
  • Loading branch information
cgiupponi committed Aug 21, 2018
1 parent ea33997 commit 92dbe20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
</label>
Expand Down

0 comments on commit 92dbe20

Please sign in to comment.