Skip to content
Permalink
Browse files

PR-739 0007051 Add missing resetFilter action

  • Loading branch information
ivoba authored and Sieg committed Nov 20, 2019
1 parent 83d53ee commit 1c654eebc302f462dcc4c93608c0cae5e80682cf
Showing with 11 additions and 0 deletions.
  1. +11 −0 source/Application/Controller/ArticleListController.php
@@ -345,6 +345,17 @@ public function executefilter()
}
}

/**
* Reset filter.
*/
public function resetFilter()
{
$activeCategory = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('cnid');
$sessionFilter = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('session_attrfilter');
unset($sessionFilter[$activeCategory]);
\OxidEsales\Eshop\Core\Registry::getSession()->setVariable('session_attrfilter', $sessionFilter);
}

/**
* Loads and returns article list of active category.
*

0 comments on commit 1c654ee

Please sign in to comment.
You can’t perform that action at this time.