Merge pull request #6224 from jitendra-webkul/master

Issue #6040 fixed
This commit is contained in:
Jitendra Singh 2022-04-04 16:27:24 +05:30 committed by GitHub
commit 7c36936159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@
<div class="control-group">
<select class="control locale-switcher" id="locale-switcher" onchange="window.location.href = this.value" @if (count(core()->getCurrentChannel()->locales) == 1) disabled="disabled" @endif>
@foreach (core()->getCurrentChannel()->locales as $locale)
@foreach (core()->getCurrentChannel()->locales()->orderBy('name')->get() as $locale)
@if (isset($serachQuery))
<option value="?{{ $serachQuery }}&locale={{ $locale->code }}" {{ $locale->code == app()->getLocale() ? 'selected' : '' }}>{{ $locale->name }}</option>
@else