Skip to content

Commit a6ab1cc

Browse files
MAGETWO-71705: fixed notice when remove column from grid #10579
- Merge Pull Request #10579 from magekey/magento2:develop - Merged commits: 1. 39be466
2 parents adb30ab + 39be466 commit a6ab1cc

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)