Skip to content

Commit

Permalink
Keep current selection for Related, Up-sells, Cross-sells, Associated…
Browse files Browse the repository at this point in the history
… grids (#2715)
  • Loading branch information
luigifab authored and fballiano committed Jan 19, 2023
1 parent 4ad2366 commit 92cf7c3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public function relatedGridAction()
$this->_initProduct();
$this->loadLayout();
$this->getLayout()->getBlock('catalog.product.edit.tab.related')
->setProductsRelated($this->getRequest()->getPost('products_related', null));
->setProductsRelated($this->getRequest()->getPost('products_related', []));
$this->renderLayout();
}

Expand All @@ -419,7 +419,7 @@ public function upsellGridAction()
$this->_initProduct();
$this->loadLayout();
$this->getLayout()->getBlock('catalog.product.edit.tab.upsell')
->setProductsRelated($this->getRequest()->getPost('products_upsell', null));
->setProductsUpsell($this->getRequest()->getPost('products_upsell', []));
$this->renderLayout();
}

Expand All @@ -432,7 +432,7 @@ public function crosssellGridAction()
$this->_initProduct();
$this->loadLayout();
$this->getLayout()->getBlock('catalog.product.edit.tab.crosssell')
->setProductsRelated($this->getRequest()->getPost('products_crosssell', null));
->setProductsCrossSell($this->getRequest()->getPost('products_crosssell', []));
$this->renderLayout();
}

Expand All @@ -445,7 +445,7 @@ public function superGroupAction()
$this->_initProduct();
$this->loadLayout();
$this->getLayout()->getBlock('catalog.product.edit.tab.super.group')
->setProductsGrouped($this->getRequest()->getPost('products_grouped', null));
->setProductsGrouped($this->getRequest()->getPost('products_grouped', []));
$this->renderLayout();
}

Expand Down

0 comments on commit 92cf7c3

Please sign in to comment.