Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

This commit is contained in:
Laurent Destailleur 2021-04-10 12:06:21 +02:00
commit 1b88f05f28
3 changed files with 3 additions and 3 deletions

View File

@ -808,7 +808,7 @@ class Products extends DolibarrApi
$sql .= ' WHERE t.entity IN ('.getEntity('product').')'; $sql .= ' WHERE t.entity IN ('.getEntity('product').')';
if ($supplier > 0) { if ($supplier > 0) {
$sql .= " AND s.fk_soc = "((int) $supplier); $sql .= " AND s.fk_soc = ".((int) $supplier);
} }
if ($socid > 0) { // if external user if ($socid > 0) { // if external user
$sql .= " AND s.fk_soc = ".((int) $socid); $sql .= " AND s.fk_soc = ".((int) $socid);