Fix output of extrafield select list from table (in case of filter with

extrafields table)
This commit is contained in:
Florian Henry 2013-11-15 15:44:04 +01:00
parent 85ea8b4161
commit 7696730680

View File

@ -935,6 +935,10 @@ class ExtraFields
$sql = 'SELECT '.$keyList;
$sql.= ' FROM '.MAIN_DB_PREFIX .$InfoFieldList[0];
if (strpos($InfoFieldList[4], 'extra')!==false)
{
$sql.= ' as main';
}
$sql.= ' WHERE '.$selectkey.'=\''.$this->db->escape($value).'\'';
//$sql.= ' AND entity = '.$conf->entity;
dol_syslog(get_class($this).':showOutputField:$type=sellist sql='.$sql);