"also disable columns for which application supplies no label (eg. no custom fields exist)"

This commit is contained in:
Ralf Becker 2009-11-14 08:45:38 +00:00
parent b2436d312b
commit 21edc1ac8a

View File

@ -444,7 +444,7 @@ class nextmatch_widget
$this->selectcols = $value['selectcols']; $this->selectcols = $value['selectcols'];
} }
if (!is_array($value['selectcols'])) $value['selectcols'] = explode(',',$value['selectcols']); if (!is_array($value['selectcols'])) $value['selectcols'] = explode(',',$value['selectcols']);
foreach(array_keys($value['options-selectcols']) as $name) foreach(array_unique(array_keys($value['options-selectcols']+$name2col)) as $name)
{ {
// set 'no_'.$col for each column-name to true, if the column is not selected // set 'no_'.$col for each column-name to true, if the column is not selected
// (and the value is not set be the get_rows function / programmer!) // (and the value is not set be the get_rows function / programmer!)