Merge pull request #23726 from Humml87/develop_Fix_API_REST_projects_filter_with_extrafields
Fix: API REST projects => integrate filter on extrafields
This commit is contained in:
commit
454c8a245a
@ -122,6 +122,7 @@ class Projects extends DolibarrApi
|
|||||||
$sql .= ", sc.fk_soc, sc.fk_user"; // We need these fields in order to filter by sale (including the case where the user can only see his prospects)
|
$sql .= ", sc.fk_soc, sc.fk_user"; // We need these fields in order to filter by sale (including the case where the user can only see his prospects)
|
||||||
}
|
}
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."projet as t";
|
$sql .= " FROM ".MAIN_DB_PREFIX."projet as t";
|
||||||
|
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."projet_extrafields AS ef ON ef.fk_object = t.rowid"; // So we will be able to filter on extrafields
|
||||||
if ($category > 0) {
|
if ($category > 0) {
|
||||||
$sql .= ", ".MAIN_DB_PREFIX."categorie_project as c";
|
$sql .= ", ".MAIN_DB_PREFIX."categorie_project as c";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user