Update api_projects.class.php

This commit is contained in:
ptibogxiv 2020-04-15 19:33:33 +02:00 committed by GitHub
parent c92263ea77
commit 84989c5cf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ class Projects extends DolibarrApi
{ {
$sql .= " AND sc.fk_user = ".$search_sale; $sql .= " AND sc.fk_user = ".$search_sale;
} }
// Select products of given category // Select projects of given category
if ($category > 0) { if ($category > 0) {
$sql .= " AND c.fk_categorie = ".$db->escape($category)." AND c.fk_project = t.rowid "; $sql .= " AND c.fk_categorie = ".$db->escape($category)." AND c.fk_project = t.rowid ";
} }