Skip to content

Commit eee2dde

Browse files
authored
Merge pull request #11 from dachcom-digital/feature/aggregation-filter-template-improvements
template improvements for aggregation filter (#10)
2 parents d16c01b + 31331e1 commit eee2dde

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

UPGRADE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Upgrade Notes
22

3+
### 1.2.0
4+
- [FEATURE] Aggregation filter template improvements [#10](https://github.com/dachcom-digital/pimcore-dynamic-search-index-provider-elasticsearch/issues/10)
5+
36
### 1.1.1
47
- [BUGFIX] Fix field for filter's term query [#7](https://github.com/dachcom-digital/pimcore-dynamic-search-index-provider-elasticsearch/issues/7)

src/DsElasticSearchBundle/OutputChannel/Filter/AggregationFilter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ public function buildViewVars(RawResultInterface $rawResult, $filterValues, $que
137137
$response = $rawResult->getParameter('fullDatabaseResponse');
138138

139139
$viewVars = [
140-
'template' => sprintf('%s/aggregation.html.twig', self::VIEW_TEMPLATE_PATH),
140+
'name' => $this->name,
141+
'template' => [sprintf('%s/%s.html.twig', self::VIEW_TEMPLATE_PATH, $this->name), sprintf('%s/aggregation.html.twig', self::VIEW_TEMPLATE_PATH)],
141142
'label' => $this->options['label'],
142143
'multiple' => $this->options['multiple'],
143144
'values' => [],

0 commit comments

Comments
 (0)