Skip to content

Commit

Permalink
Revert "Added l_type parameter to catalog filter URLs"
Browse files Browse the repository at this point in the history
This reverts commit e2d68a7.
  • Loading branch information
aimeos committed Feb 4, 2022
1 parent e2d68a7 commit 0ffff97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions client/html/src/Client/Html/Catalog/Filter/Standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,6 @@ protected function getSubClientNames() : array
public function addData( \Aimeos\MW\View\Iface $view, array &$tags = [], string &$expire = null ) : \Aimeos\MW\View\Iface
{
$config = $this->getContext()->getConfig();
$params = $this->getClientParams( $view->param(), ['f_', 'l_type'] );

$view->filterParams = $params;

/** client/html/catalog/count/enable
* Enables or disables displaying product counts in the catalog filter
Expand Down Expand Up @@ -583,6 +580,8 @@ public function addData( \Aimeos\MW\View\Iface $view, array &$tags = [], string
*/
$conf = $config->get( 'client/html/catalog/count/url/config', [] );

$params = $this->getClientParams( $view->param(), ['f_'] );

if( $startid = $config->get( 'client/html/catalog/filter/tree/startid' ) ) {
$params['f_catid'] = $startid;
}
Expand All @@ -606,6 +605,7 @@ public function addData( \Aimeos\MW\View\Iface $view, array &$tags = [], string
unset( $params[$name] );
}

$view->filterParams = $params;
$view->filterCountUrl = $view->url( $target, $controller, $action, $params, [], $conf );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public function addData( \Aimeos\MW\View\Iface $view, array &$tags = [], string

$view->treeCatalogPath = $catItems;
$view->treeCatalogTree = $cntl->visible( $catItems->keys()->all() )->getTree( $cntl::TREE );
$view->treeFilterParams = $view->get( 'filterParams', [] );
$view->treeFilterParams = $this->getClientParams( $view->param(), ['f_'] );

$this->addMetaItemCatalog( $view->treeCatalogTree, $expire, $tags );

Expand Down

0 comments on commit 0ffff97

Please sign in to comment.