Merge pull request #11902 from OPEN-DSI/fix-formproduct-select-warehouses-cache

FIX empty cache when we want to load specific warehouses in select
This commit is contained in:
Laurent Destailleur 2019-09-27 14:59:14 +02:00 committed by GitHub
commit 8ef227f24a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);