Commit 183a0bfa by Qiang Xue

hide summary when empty.

parent a8d18967
...@@ -147,6 +147,9 @@ abstract class BaseListView extends Widget ...@@ -147,6 +147,9 @@ abstract class BaseListView extends Widget
public function renderSummary() public function renderSummary()
{ {
$count = $this->dataProvider->getCount(); $count = $this->dataProvider->getCount();
if ($count <= 0) {
return '';
}
if (($pagination = $this->dataProvider->getPagination()) !== false) { if (($pagination = $this->dataProvider->getPagination()) !== false) {
$totalCount = $this->dataProvider->getTotalCount(); $totalCount = $this->dataProvider->getTotalCount();
$begin = $pagination->getPage() * $pagination->pageSize + 1; $begin = $pagination->getPage() * $pagination->pageSize + 1;
......
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