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

This commit is contained in:
VESSILLER 2019-09-16 10:37:55 +02:00
parent ccd468149b
commit 6e806a5aed

View File

@ -243,6 +243,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, $stockMin, $orderBy);
$nbofwarehouses=count($this->cache_warehouses);