Skip to content

Commit

Permalink
fixed notice when remove column from grid
Browse files Browse the repository at this point in the history
  • Loading branch information
magekey committed Aug 18, 2017
1 parent d19e900 commit 39be466
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/code/Magento/Backend/Block/Widget/Grid/Extended.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ public function removeColumn($columnId)
if ($this->getColumnSet()->getChildBlock($columnId)) {
$this->getColumnSet()->unsetChild($columnId);
if ($this->_lastColumnId == $columnId) {
$this->_lastColumnId = array_pop($this->getColumnSet()->getChildNames());
$names = $this->getColumnSet()->getChildNames();
$this->_lastColumnId = array_pop($names);
}
}
return $this;
Expand Down

0 comments on commit 39be466

Please sign in to comment.