Merge pull request #2476 from fmarcet/3.7

Fix: Not using where on sellist
This commit is contained in:
Laurent Destailleur 2015-03-27 00:50:48 +01:00
commit 813cb36424

View File

@ -766,7 +766,7 @@ class ExtraFields
$sqlwhere.= ' WHERE 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.=preg_replace('/^ AND /','',$sqlwhere);
$sql.=$sqlwhere;
//print $sql;
dol_syslog(get_class($this).'::showInputField type=sellist', LOG_DEBUG);