FIX empty cache when we want to load specific warehouses in select

Conflicts:
	htdocs/product/class/html.formproduct.class.php
This commit is contained in:
VESSILLER 2019-09-16 10:37:55 +02:00 committed by Laurent Destailleur
parent e3edb37620
commit 5f08a649eb

View File

@ -218,6 +218,7 @@ class FormProduct
$out='';
if (empty($conf->global->ENTREPOT_EXTRA_STATUS)) $filterstatus = '';
if (!empty($fk_product)) $this->cache_warehouses = array();
$this->loadWarehouses($fk_product, '', $filterstatus, true, $exclude);
$nbofwarehouses=count($this->cache_warehouses);