Fix syntax error
This commit is contained in:
parent
42ddb6e5f0
commit
0cf659eb85
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user