Merge pull request #4134 from FHenry/3.7

FIX : Use "WHERE true" instead of "WHERE 1" #4132
This commit is contained in:
Laurent Destailleur 2015-12-03 11:58:23 +01:00
commit 1694481df8

View File

@ -765,7 +765,7 @@ class ExtraFields
}
else
{
$sqlwhere.= ' WHERE 1';
$sqlwhere.= ' WHERE 1=1';
}
if (in_array($InfoFieldList[0],array('tablewithentity'))) $sqlwhere.= ' AND entity = '.$conf->entity; // Some tables may have field, some other not. For the moment we disable it.
$sql.=$sqlwhere;