Commit 8d4bf893 by Qiang Xue

Fixes #1221: make it easier to subclass BaseDataProvider with custom pagination.

parent 1c5a6835
......@@ -165,10 +165,7 @@ abstract class BaseDataProvider extends Component implements DataProviderInterfa
public function getPagination()
{
if ($this->_pagination === null) {
$this->_pagination = new Pagination;
if ($this->id !== null) {
$this->_pagination->pageVar = $this->id . '-page';
}
$this->setPagination([]);
}
return $this->_pagination;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment