Skip to content

Commit

Permalink
Fixed issue with list filter scope conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
sampoyigi committed Feb 2, 2023
1 parent 70362a5 commit a85efb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/admin/models/config/orders_model.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$config['list']['filter'] = [
'search' => [
'prompt' => 'lang:admin::lang.orders.text_filter_search',
Expand All @@ -18,7 +19,7 @@
'location' => [
'label' => 'lang:admin::lang.text_filter_location',
'type' => 'selectlist',
'conditions' => 'location_id = :filtered',
'scope' => 'whereHasLocation',
'modelClass' => 'Admin\Models\Locations_model',
'nameFrom' => 'location_name',
'locationAware' => true,
Expand All @@ -41,7 +42,7 @@
'payment' => [
'label' => 'lang:admin::lang.orders.text_filter_payment',
'type' => 'selectlist',
'conditions' => 'payment = :filtered',
'conditions' => 'payment IN(:filtered)',
'modelClass' => 'Admin\Models\Payments_model',
'options' => 'getDropdownOptions',
],
Expand Down
2 changes: 1 addition & 1 deletion app/admin/models/config/reservations_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'location' => [
'label' => 'lang:admin::lang.text_filter_location',
'type' => 'selectlist',
'conditions' => 'location_id = :filtered',
'scope' => 'whereHasLocation',
'modelClass' => 'Admin\Models\Locations_model',
'nameFrom' => 'location_name',
'locationAware' => true,
Expand Down

0 comments on commit a85efb9

Please sign in to comment.