mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-03 15:42:29 +01:00
Update replenish.php
This commit is contained in:
committed by
GitHub
parent
109124fdac
commit
328e70c309
@@ -75,7 +75,8 @@ if ($fk_entrepot == "-1" && !empty($conf->global->MULTICOMPANY_PRODUCT_SHARING_E
|
||||
}
|
||||
$resWar = $db->query("SELECT rowid FROM " . MAIN_DB_PREFIX . "entrepot WHERE entity IN (" . $db->sanitize($visibleWarehousesEntities) .")");
|
||||
if ($db->num_rows($resWar) == 1) {
|
||||
$fk_entrepot = $db->fetch_object($resWar)->rowid;
|
||||
$tmpobj = $db->fetch_object($resWar);
|
||||
$fk_entrepot = $tmpobj->rowid;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user