Index: branches/5.2.x/core/kernel/db/dblist.php =================================================================== diff -u -N -r16424 -r16465 --- branches/5.2.x/core/kernel/db/dblist.php (.../dblist.php) (revision 16424) +++ branches/5.2.x/core/kernel/db/dblist.php (.../dblist.php) (revision 16465) @@ -1,6 +1,6 @@ Query(); + return $this->SelectedCount; } Index: branches/5.2.x/core/kernel/db/db_tag_processor.php =================================================================== diff -u -N -r16456 -r16465 --- branches/5.2.x/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 16456) +++ branches/5.2.x/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 16465) @@ -1,6 +1,6 @@ GetRecordsCount(false); + case 'selected': + return $object->GetSelectedCount(); + case 'from': return $object->GetRecordsCount() ? $object->GetOffset() + 1 : 0; //0-based @@ -2222,6 +2225,20 @@ } /** + * Returns selected records count. + * + * @param array $params Tag params. + * + * @return string + */ + protected function SelectedRecords(array $params) + { + $list =& $this->GetList($params); + + return $list->GetSelectedCount(); + } + + /** * Range filter field name * * @param Array $params