Skip to content

Commit 104ef28

Browse files
committed
Fixed bug in filter if have not empty columns and filtered rows is 0
1 parent 34e9d3a commit 104ef28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Mesour/DataGrid/BaseGrid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ public function render()
538538

539539
protected function checkEmptyColumns()
540540
{
541-
if ($this->count === 0) {
541+
if ($this->count === 0 && count($this->getColumns()) === 0) {
542542
foreach ($this->getRealColumnNames() as $key) {
543543
$this->setColumn(new Column\Text, $key);
544544
}

0 commit comments

Comments
 (0)