Index: branches/5.1.x/core/kernel/db/dblist.php =================================================================== diff -u -r13168 -r13438 --- branches/5.1.x/core/kernel/db/dblist.php (.../dblist.php) (revision 13168) +++ branches/5.1.x/core/kernel/db/dblist.php (.../dblist.php) (revision 13438) @@ -1,6 +1,6 @@ SelectedCount) { - $ret[] = $this->Records[$i][$field]; - $i++; + + if ($formatted && array_key_exists('formatter', $this->Fields[$field])) { + $formatter =& $this->Application->recallObject($this->Fields[$field]['formatter']); + /* @var $formatter kFormatter */ + + while ($i < $this->SelectedCount) { + $ret[] = $formatter->Format($this->Records[$i][$field], $field, $this, $format); + $i++; + } } + else { + while ($i < $this->SelectedCount) { + $ret[] = $this->Records[$i][$field]; + $i++; + } + } return $ret; }