Index: branches/RC/core/kernel/db/db_tag_processor.php =================================================================== diff -u -N -r9844 -r9969 --- branches/RC/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 9844) +++ branches/RC/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 9969) @@ -137,12 +137,16 @@ $picker_helper =& $this->Application->RecallObject('ColumnPickerHelper'); /* @var $picker_helper kColumnPickerHelper */ $picker_helper->ApplyPicker($this->getPrefixSpecial(), $grid_config, $params['grid']); + + if ($mode == 'fields') { + return "'".join("','", array_keys($grid_config))."'"; + } $std_params['pass_params'] = 'true'; $std_params['PrefixSpecial'] = $this->getPrefixSpecial(); $object =& $this->GetList($params); - + $o = ''; $i = 0; foreach ($grid_config as $field => $options) { @@ -156,7 +160,7 @@ $w = $picker_helper->GetWidth($field); if ($w) $options['width'] = $w; - if (isset($options['filter_width'])) { + /*if (isset($options['filter_width'])) { $block_params['filter_width'] = $options['filter_width']; } elseif (isset($options['width'])) { @@ -172,9 +176,19 @@ else { $block_params['filter_width'] = max($options['width']-10, 20); } + }*/ + /*if (isset($block_params['filter_width'])) $block_params['filter_width'] .= 'px'; + + + if (isset($options['filter_block']) && preg_match('/range/', $options['filter_block'])) { + $block_params['filter_width'] = '20px'; } - if (isset($block_params['filter_width'])) $block_params['filter_width'] .= 'px'; + else { + $block_params['filter_width'] = '97%'; +// $block_params['filter_width'] = max($options['width']-10, 20); + }*/ + $field_options = $object->GetFieldOptions($field); if (array_key_exists('use_phrases', $field_options)) { $block_params['use_phrases'] = $field_options['use_phrases'];