Index: branches/unlabeled/unlabeled-1.68.4/core/kernel/db/db_tag_processor.php =================================================================== diff -u -r7091 -r7102 --- branches/unlabeled/unlabeled-1.68.4/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 7091) +++ branches/unlabeled/unlabeled-1.68.4/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 7102) @@ -158,6 +158,15 @@ return $o; } + function PickerCRC($params) + { + /* @var $picker_helper kColumnPickerHelper */ + $picker_helper =& $this->Application->RecallObject('ColumnPickerHelper'); + $picker_helper->SetGridName($params['grid']); + $data = $picker_helper->LoadColumns($this->getPrefixSpecial()); + return $data['crc']; + } + function GridFieldsCount($params) { $grids = $this->Application->getUnitOption($this->Prefix, 'Grids'); @@ -186,11 +195,14 @@ $block_params['name'] = $this->SelectParam($params, 'render_as,block'); $block_params['pass_params'] = 'true'; + $i = 0; while (!$list->EOL()) { $this->Application->SetVar( $this->getPrefixSpecial().'_id', $list->GetDBField($id_field) ); // for edit/delete links using GET + $block_params['is_last'] = ($i == $list->SelectedCount-1); $o.= $this->Application->ParseBlock($block_params, 1); $list->GoNext(); + $i++; } $this->Application->SetVar( $this->getPrefixSpecial().'_id', ''); @@ -1501,7 +1513,7 @@ if (isset($params['type'])) { $ret = $ret[ $params['type'] ]; } - + if( !$this->HasParam($params, 'no_special') ) $ret = htmlspecialchars($ret); return $ret; }