Skip to content

Commit

Permalink
Merge pull request #573 from ChristianGiupponi/3.0
Browse files Browse the repository at this point in the history
Fixed a bug that checked the last radio even if wasn't the right one
  • Loading branch information
nWidart authored Aug 24, 2018
2 parents 0562bc8 + 92dbe20 commit 84e9191
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 84e9191

Please sign in to comment.