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

Fix: sql error on numbering module for tasks

parent 74404749
Branches
No related tags found
No related merge requests found
......@@ -739,7 +739,7 @@ function get_next_value($db,$mask,$table,$field,$where='',$objsoc='',$date='',$m
$sql.= " FROM ".MAIN_DB_PREFIX.$table;
$sql.= " WHERE ".$field." LIKE '".$maskLike."'";
$sql.= " AND ".$field." NOT LIKE '%PROV%'";
$sql.= " AND entity IN (".getEntity($table, 1).")";
if ($table != 'projet_task') $sql.= " AND entity IN (".getEntity($table, 1).")";
if ($where) $sql.=$where;
if ($sqlwhere) $sql.=' AND '.$sqlwhere;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment