summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorwei <>2007-05-09 07:08:08 +0000
committerwei <>2007-05-09 07:08:08 +0000
commita49bb746445974a692cbc00f32dd167cabaaf030 (patch)
tree085c4f9d7d904caa48a64ac8025bd9deab8d6cf0 /framework
parent559f04e22869e3b54ffc25b22a74aa297bf65c41 (diff)
Add criteria for scaffold count.
Diffstat (limited to 'framework')
-rw-r--r--framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php b/framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php
index e47670ca..f5121a44 100644
--- a/framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php
+++ b/framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php
@@ -87,9 +87,9 @@ class TScaffoldListView extends TScaffoldBase
*/
protected function loadRecordData()
{
- $this->_list->setVirtualItemCount($this->getRecordFinder()->count());
$finder = $this->getRecordFinder();
$criteria = $this->getRecordCriteria();
+ $this->_list->setVirtualItemCount($this->getRecordFinder()->count($criteria));
$this->_list->setDataSource($finder->findAll($criteria));
$this->_list->dataBind();
}