chg: [genericElements:listTopBar] Filtering context are taken from

passed data instead of set variables
pull/37/head
mokaddem 2020-12-08 15:15:58 +01:00
parent 8cc16b4a69
commit a9d808f533
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ echo $this->element('genericElements/IndexTable/index_table', [
'children' => [
[
'type' => 'context_filters',
'context_filters' => $filteringContexts
],
[
'type' => 'search',

View File

@ -1,6 +1,6 @@
<?php
$contextArray = [];
foreach ($filteringContexts as $filteringContext) {
foreach ($data['context_filters'] as $filteringContext) {
$filteringContext['filterCondition'] = empty($filteringContext['filterCondition']) ? [] : $filteringContext['filterCondition'];
$urlParams = [
'controller' => $this->request->getParam('controller'),