mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-20 08:27:21 +08:00
Fixed pagination not working before data loaded
This commit is contained in:
@@ -48,6 +48,7 @@ abstract class DataProvider extends Component implements DataProviderInterface
|
||||
if ($this->id !== null) {
|
||||
$this->_pagination->pageVar = $this->id . '-page';
|
||||
}
|
||||
$this->_pagination->totalCount = $this->getTotalCount();
|
||||
}
|
||||
return $this->_pagination;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user