make sure to load all cfs, if "customfield" in in selected columns

This commit is contained in:
Ralf Becker 2013-10-17 14:08:54 +00:00
parent 3124a8c3f3
commit 056e5680b8

View File

@ -377,10 +377,13 @@ class so_sql_cf extends so_sql
$id2keys[$row[$this->autoinc_id]] = $key;
}
// check if only certain cf's to show
if (!in_array('customfields', $selectcols))
{
foreach($selectcols as $col)
{
if ($this->is_cf($col)) $fields[] = $this->get_cf_name($col);
}
}
if (($cfs = $this->read_customfields(array_keys($id2keys),$fields)))
{
foreach($cfs as $id => $data)