2
0
forked from Wavyzz/dolibarr

fix sql error

This commit is contained in:
ias-ceo
2018-07-12 05:09:36 +03:00
parent e17d5279ac
commit 076bf0a3a7

View File

@@ -7576,7 +7576,7 @@ function getDictvalue($tablename, $field, $id, $checkentity=false, $rowidfield='
{
$dictvalues[$tablename] = array();
$sql = 'SELECT * FROM '.$tablename.' WHERE 1';
if ($checkentity) $sql.= ' entity IN (0,'.getEntity('').')';
if ($checkentity) $sql.= ' and entity IN (0,'.getEntity('').')';
$resql = $db->query($sql);
if ($resql)