From c2814948fbf51f9095956eff7bb584bb5b346127 Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Mon, 15 Oct 2018 11:48:55 +0200 Subject: [PATCH] Fix: name of fields used into the search criteria must always start with "search_" --- htdocs/product/list.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/product/list.php b/htdocs/product/list.php index 9028ceb15c2..36bf5a24ef9 100644 --- a/htdocs/product/list.php +++ b/htdocs/product/list.php @@ -68,7 +68,7 @@ $type=GETPOST("type","int"); //Show/hide child products if (!empty($conf->variants->enabled) && ! empty($conf->global->PRODUIT_ATTRIBUTES_HIDECHILD)) { - $show_childproducts = GETPOST('show_childproducts'); + $show_childproducts = GETPOST('search_show_childproducts'); } else { $show_childproducts = ''; } @@ -404,7 +404,7 @@ if ($resql) if ($search_tobuy != '') $param.="&search_tobuy=".urlencode($search_tobuy); if ($fourn_id > 0) $param.=($fourn_id?"&fourn_id=".$fourn_id:""); if ($seach_categ) $param.=($search_categ?"&search_categ=".urlencode($search_categ):""); - if ($show_childproducts) $param.=($show_childproducts?"&show_childproducts=".urlencode($show_childproducts):""); + if ($show_childproducts) $param.=($show_childproducts?"&search_show_childproducts=".urlencode($show_childproducts):""); if ($type != '') $param.='&type='.urlencode($type); if ($search_type != '') $param.='&search_type='.urlencode($search_type); if ($optioncss != '') $param.='&optioncss='.urlencode($optioncss); @@ -482,8 +482,8 @@ if ($resql) //Show/hide child products. Hidden by default if (!empty($conf->variants->enabled) && !empty($conf->global->PRODUIT_ATTRIBUTES_HIDECHILD )) { $moreforfilter.='
'; - $moreforfilter.= ''; - $moreforfilter.= ' '; + $moreforfilter.= ''; + $moreforfilter.= ' '; $moreforfilter.='
'; }