Fixed filter issue in admin panel

This commit is contained in:
Jaseel P V 2020-10-08 00:57:06 +05:30
parent c2db69289f
commit a2cbec7ad2
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
@php
$locale = request()->get('locale') ?: app()->getLocale();
$channel = request()->get('channel') ?: (core()->getCurrentChannelCode() ?: core()->getDefaultChannelCode());
$customer_group = request()->get('customer_group');
@endphp
<div class="table">
@ -27,7 +28,7 @@
@foreach ($results['extraFilters']['channels'] as $channelModel)
<option
value="{{ $channelModel->id }}"
{{ (isset($channel) && ($channelModel->code) == $channel) ? 'selected' : '' }}>
{{ (isset($channel) && ($channelModel->id) == $channel) ? 'selected' : '' }}>
{{ $channelModel->name }}
</option>
@endforeach