From e301ee5e18c3d192efaaa92da104a1c764246725 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 3 Jun 2016 08:55:18 -0400 Subject: [PATCH] Reset special Summon facets when necessary. --- module/VuFind/src/VuFind/Search/Summon/Params.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/module/VuFind/src/VuFind/Search/Summon/Params.php b/module/VuFind/src/VuFind/Search/Summon/Params.php index 17b911c0c65..e454c4f4cc5 100644 --- a/module/VuFind/src/VuFind/Search/Summon/Params.php +++ b/module/VuFind/src/VuFind/Search/Summon/Params.php @@ -82,6 +82,18 @@ class Params extends \VuFind\Search\Base\Params return parent::addFacet($parts[0], $newAlias, $ored); } + /** + * Reset the current facet configuration. + * + * @return void + */ + public function resetFacetConfig() + { + parent::resetFacetConfig(); + $this->dateFacetSettings = []; + $this->fullFacetSettings = []; + } + /** * Get the full facet settings stored by addFacet -- these may include extra * parameters needed by the search results class. -- GitLab