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

Merge branch 'atm-maxime-develop' into develop

parents 2dc3e5b1 a72c3d43
No related tags found
No related merge requests found
...@@ -77,6 +77,7 @@ class FormProjets ...@@ -77,6 +77,7 @@ class FormProjets
$sql.= " WHERE p.entity = ".$conf->entity; $sql.= " WHERE p.entity = ".$conf->entity;
if ($projectsListId !== false) $sql.= " AND p.rowid IN (".$projectsListId.")"; if ($projectsListId !== false) $sql.= " AND p.rowid IN (".$projectsListId.")";
if ($socid == 0) $sql.= " AND (p.fk_soc=0 OR p.fk_soc IS NULL)"; if ($socid == 0) $sql.= " AND (p.fk_soc=0 OR p.fk_soc IS NULL)";
if ($socid > 0) $sql.= " AND (p.fk_soc=".$socid." OR p.fk_soc IS NULL)";
$sql.= " ORDER BY p.ref ASC"; $sql.= " ORDER BY p.ref ASC";
dol_syslog(get_class($this)."::select_projects sql=".$sql,LOG_DEBUG); dol_syslog(get_class($this)."::select_projects sql=".$sql,LOG_DEBUG);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment