chg: [genericElements:listTopBar] Filtering context are taken from
passed data instead of set variablespull/37/head
parent
8cc16b4a69
commit
a9d808f533
|
@ -6,6 +6,7 @@ echo $this->element('genericElements/IndexTable/index_table', [
|
|||
'children' => [
|
||||
[
|
||||
'type' => 'context_filters',
|
||||
'context_filters' => $filteringContexts
|
||||
],
|
||||
[
|
||||
'type' => 'search',
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue