Merge branch 'develop' into trunk
This commit is contained in:
commit
b53880938d
1 changed files with 2 additions and 2 deletions
|
|
@ -571,10 +571,10 @@ class ProductController extends Controller
|
|||
* Delete the "sub" start filter to avoid "subsubrange" when user has some filters
|
||||
* and hard visit a total different product filter
|
||||
*
|
||||
* @param string $filter
|
||||
* @param string|null $filter
|
||||
* @return mixed
|
||||
*/
|
||||
private function cleanSubSubFilter(string $filter): mixed
|
||||
private function cleanSubSubFilter(string|null $filter = null): mixed
|
||||
{
|
||||
return str_starts_with($filter, "sub") ? preg_replace('/^sub/', '', $filter) : $filter;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue