Merge pull request #11760 from atm-john/FIX_module_product_disabled

FIX: remove disabled product type from product list
This commit is contained in:
Laurent Destailleur 2019-08-27 12:38:21 +02:00 committed by GitHub
commit 8a4ac2cb07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1785,6 +1785,15 @@ class Form
$price_level = (! empty($price_level) ? $price_level : 0);
if(strval($filtertype) === '' && (!empty($conf->product->enabled) || !empty($conf->service->enabled))){
if(!empty($conf->product->enabled) && empty($conf->service->enabled)){
$filtertype = '0';
}
elseif(empty($conf->product->enabled) && !empty($conf->service->enabled)){
$filtertype = '1';
}
}
if (! empty($conf->use_javascript_ajax) && ! empty($conf->global->PRODUIT_USE_SEARCH_TO_SELECT))
{
$placeholder='';