diff --git a/web/typo3conf/ext/ep_products/Classes/Controller/AjaxSearchbarController.php b/web/typo3conf/ext/ep_products/Classes/Controller/AjaxSearchbarController.php index c44ecce4..11ed0783 100644 --- a/web/typo3conf/ext/ep_products/Classes/Controller/AjaxSearchbarController.php +++ b/web/typo3conf/ext/ep_products/Classes/Controller/AjaxSearchbarController.php @@ -87,14 +87,8 @@ class AjaxSearchbarController extends ActionController */ public function resetAction() { - $searchParams = new SearchParams(); - $forcedConceptUids = GeneralUtility::trimExplode(',', $this->settings['forcedConceptUids'], true); - $filterSettings = $this->filterService->getDefaultFilterSettings($forcedConceptUids); - $filterOptions = $this->filterService->getFilterOptions($filterSettings); - return json_encode([ - 'filterOptions' => $filterOptions, - 'searchParams' => $searchParams, - ]); + // To reset we simply forward to options action with empty search params + $this->forward('options'); } }