Skip to content
Snippets Groups Projects
Commit 1411772c authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix sql error

parent d109c78c
No related branches found
No related tags found
No related merge requests found
...@@ -231,7 +231,7 @@ class FormProjets ...@@ -231,7 +231,7 @@ class FormProjets
$sql.= " FROM ".MAIN_DB_PREFIX.$table_element; $sql.= " FROM ".MAIN_DB_PREFIX.$table_element;
$sql.= " WHERE ".$projectkey." is null"; $sql.= " WHERE ".$projectkey." is null";
if (!empty($socid)) $sql.= " AND fk_soc=".$socid; if (! empty($socid) && ! in_array($table_element, array('don'))) $sql.= " AND fk_soc=".$socid;
if (! in_array($table_element, array('expensereport_det'))) $sql.= ' AND entity='.getEntity('project'); if (! in_array($table_element, array('expensereport_det'))) $sql.= ' AND entity='.getEntity('project');
$sql.= " ORDER BY ref DESC"; $sql.= " ORDER BY ref DESC";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment