Skip to content

Commit 39be466

Browse files
committed
fixed notice when remove column from grid
1 parent d19e900 commit 39be466

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Backend/Block/Widget/Grid/Extended.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ public function removeColumn($columnId)
314314
if ($this->getColumnSet()->getChildBlock($columnId)) {
315315
$this->getColumnSet()->unsetChild($columnId);
316316
if ($this->_lastColumnId == $columnId) {
317-
$this->_lastColumnId = array_pop($this->getColumnSet()->getChildNames());
317+
$names = $this->getColumnSet()->getChildNames();
318+
$this->_lastColumnId = array_pop($names);
318319
}
319320
}
320321
return $this;

0 commit comments

Comments
 (0)