Skip to content

Commit

Permalink
MAGETWO-71705: fixed notice when remove column from grid #10579
Browse files Browse the repository at this point in the history
  • Loading branch information
ishakhsuvarov authored Aug 19, 2017
2 parents 8f4fec3 + a6ab1cc commit fc28ea6
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 fc28ea6

Please sign in to comment.