Update api_thirdparties.class.php

This commit is contained in:
ptibogxiv 2020-04-15 18:31:20 +02:00 committed by GitHub
parent 78c5011a71
commit d1957e1a05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ class Thirdparties extends DolibarrApi
if ($mode == 3) $sql .= " AND t.client IN (0)";
if ($mode == 4) $sql .= " AND t.fournisseur IN (1)";
// Select products of given category
// Select thirdparties of given category
if ($category > 0) {
$sql .= " AND c.fk_categorie = ".$db->escape($category);
$sql .= " AND c.fk_soc = t.rowid ";