Skip to content
Snippets Groups Projects
Commit 0ef5a166 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Fixes double-checkbox-filter display introduced by #1482. (#1500)

parent 1e59bdbb
No related merge requests found
......@@ -7,7 +7,7 @@
$params = $this->tab->getParams();
$searchDetails = ['results' => $results, 'params' => $params, 'indexStart' => 1];
$filterList = $params->getFilterList(false);
$filterList = $params->getFilterList(true);
$checkboxFilters = $params->getCheckboxFacets();
?>
<div class="<?=$this->layoutClass('mainbody')?>">
......@@ -22,7 +22,7 @@
<form class="form-inline" role="form" method="get" name="keywordFilterForm" id="keywordFilterForm">
<div class="input-group">
<input id="keywordFilter_lookfor" type="text" name="lookfor" placeholder="<?=$this->transEsc('Search within collection')?>" value="<?=$params->getDisplayQuery()?>" class="form-control">
<?php foreach ($params->getFilterList(true) as $field => $filters): ?>
<?php foreach ($filterList as $field => $filters): ?>
<?php foreach ($filters as $filter): ?>
<input type="hidden" name="filter[]" value="<?=$this->escapeHtmlAttr($filter['field'])?>:&quot;<?=$this->escapeHtmlAttr($filter['value'])?>&quot;" />
<?php endforeach; ?>
......
......@@ -17,7 +17,7 @@
'searchId' => $this->results->getSearchId(),
'searchClassId' => $this->params->getSearchClassId(),
'checkboxFilters' => $this->params->getCheckboxFacets(),
'filterList' => $this->params->getFilterList(),
'filterList' => $this->params->getFilterList(true),
'hasDefaultsApplied' => $this->params->hasDefaultsApplied(),
'selectedShards' => $this->params->getSelectedShards()
]
......
......@@ -17,7 +17,7 @@
'searchId' => $this->results->getSearchId(),
'searchClassId' => $this->params->getSearchClassId(),
'checkboxFilters' => $this->params->getCheckboxFacets(),
'filterList' => $this->params->getFilterList(),
'filterList' => $this->params->getFilterList(true),
'hasDefaultsApplied' => $this->params->hasDefaultsApplied(),
'selectedShards' => $this->params->getSelectedShards(),
'ignoreHiddenFiltersInRequest' => isset($this->ignoreHiddenFiltersInRequest) ? $this->ignoreHiddenFiltersInRequest : false,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment