Skip to content

Commit 92cf7c3

Browse files
luigifabfballiano
authored andcommitted
Keep current selection for Related, Up-sells, Cross-sells, Associated grids (#2715)
1 parent 4ad2366 commit 92cf7c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ public function relatedGridAction()
406406
$this->_initProduct();
407407
$this->loadLayout();
408408
$this->getLayout()->getBlock('catalog.product.edit.tab.related')
409-
->setProductsRelated($this->getRequest()->getPost('products_related', null));
409+
->setProductsRelated($this->getRequest()->getPost('products_related', []));
410410
$this->renderLayout();
411411
}
412412

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

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

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

0 commit comments

Comments
 (0)