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' => [
|
'children' => [
|
||||||
[
|
[
|
||||||
'type' => 'context_filters',
|
'type' => 'context_filters',
|
||||||
|
'context_filters' => $filteringContexts
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'type' => 'search',
|
'type' => 'search',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
$contextArray = [];
|
$contextArray = [];
|
||||||
foreach ($filteringContexts as $filteringContext) {
|
foreach ($data['context_filters'] as $filteringContext) {
|
||||||
$filteringContext['filterCondition'] = empty($filteringContext['filterCondition']) ? [] : $filteringContext['filterCondition'];
|
$filteringContext['filterCondition'] = empty($filteringContext['filterCondition']) ? [] : $filteringContext['filterCondition'];
|
||||||
$urlParams = [
|
$urlParams = [
|
||||||
'controller' => $this->request->getParam('controller'),
|
'controller' => $this->request->getParam('controller'),
|
||||||
|
|
Loading…
Reference in New Issue