Skip to content

Commit

Permalink
Don't show stage image in detail view if no f_catid parameter is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Oct 7, 2020
1 parent 6f33827 commit 802576d
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions client/html/src/Client/Html/Catalog/Stage/Standard.php
Expand Up @@ -384,26 +384,6 @@ public function process()
}


/**
* Returns the parameters used by the html client.
*
* @param string[] $params Associative list of all parameters
* @param array $prefixes List of prefixes the parameters must start with
* @return array Associative list of parameters used by the html client
*/
protected function getClientParams( array $params, array $prefixes = ['f', 'l', 'd', 'a'] ) : array
{
if( isset( $params['d_prodid'] ) || isset( $params['d_name'] ) )
{
$context = $this->getContext();
$site = $context->getLocale()->getSiteItem()->getCode();
$params += (array) $context->getSession()->get( 'aimeos/catalog/lists/params/last/' . $site, [] );
}

return parent::getClientParams( $params, $prefixes );
}


/**
* Returns the list of sub-client names configured for the client.
*
Expand Down

0 comments on commit 802576d

Please sign in to comment.