Skip to content
Snippets Groups Projects
Commit 9a0f9477 authored by Florian Henry's avatar Florian Henry
Browse files

Fix multicompany problem with extrafield list from table

parent 7fdf2f34
No related branches found
No related tags found
No related merge requests found
......@@ -703,6 +703,7 @@ class ExtraFields
$sql = 'SELECT '.$keyList.', '.$InfoFieldList[1];
$sql.= ' FROM '.MAIN_DB_PREFIX .$InfoFieldList[0];
$sql.= ' WHERE entity = '.$conf->entity;
dol_syslog(get_class($this).':showInputField:$type=sellist sql='.$sql);
$resql = $this->db->query($sql);
......@@ -839,7 +840,8 @@ class ExtraFields
$sql = 'SELECT '.$InfoFieldList[1];
$sql.= ' FROM '.MAIN_DB_PREFIX .$InfoFieldList[0];
$sql.= ' where '.$keyList.'="'.$this->db->escape($value).'"';
$sql.= ' WHERE '.$keyList.'="'.$this->db->escape($value).'"';
$sql.= ' AND entity = '.$conf->entity;
dol_syslog(get_class($this).':showOutputField:$type=sellist sql='.$sql);
$resql = $this->db->query($sql);
if ($resql)
......
......@@ -67,7 +67,8 @@ if((($type == 'select') || ($type == 'checkbox') ||(($type == 'radio'))) && is_a
}
}
}elseif ($type== 'sellist') {
$param_chain = array_keys($param['options'])[0];
$paramlist=array_keys($param['options']);
$param_chain = $paramlist[0];
}
?>
<!-- Position -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment