diff options
author | wei <> | 2007-05-09 07:08:08 +0000 |
---|---|---|
committer | wei <> | 2007-05-09 07:08:08 +0000 |
commit | a49bb746445974a692cbc00f32dd167cabaaf030 (patch) | |
tree | 085c4f9d7d904caa48a64ac8025bd9deab8d6cf0 /framework/Data/ActiveRecord | |
parent | 559f04e22869e3b54ffc25b22a74aa297bf65c41 (diff) |
Add criteria for scaffold count.
Diffstat (limited to 'framework/Data/ActiveRecord')
-rw-r--r-- | framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php | 2 |
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();
}
|