// Fixed bugs when updating a product
This commit is contained in:
1 parent
278b2db869
commit
b178c34da2
1 file changed
+2
-2
@@ -2218,7 +2218,7 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
*/
|
*/
|
||||||
public function processSuppliers($token)
|
public function processSuppliers($token)
|
||||||
{
|
{
|
||||||
if (Validate::isLoadedObject($product = new Product((int)Tools::getValue('id_product'))))
|
if ((int)Tools::getValue('supplier_loaded') === 1 && Validate::isLoadedObject($product = new Product((int)Tools::getValue('id_product'))))
|
||||||
{
|
{
|
||||||
// Get all id_product_attribute
|
// Get all id_product_attribute
|
||||||
$attributes = $product->getAttributesResume($this->context->language->id);
|
$attributes = $product->getAttributesResume($this->context->language->id);
|
||||||
@@ -2396,7 +2396,7 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
*/
|
*/
|
||||||
public function processWarehouses($token)
|
public function processWarehouses($token)
|
||||||
{
|
{
|
||||||
if (Validate::isLoadedObject($product = new Product((int)Tools::getValue('id_product'))))
|
if ((int)Tools::getValue('warehouse_loaded') === 1 && Validate::isLoadedObject($product = new Product((int)Tools::getValue('id_product'))))
|
||||||
{
|
{
|
||||||
// Get all id_product_attribute
|
// Get all id_product_attribute
|
||||||
$attributes = $product->getAttributesResume($this->context->language->id);
|
$attributes = $product->getAttributesResume($this->context->language->id);
|
||||||
|
|||||||
Reference in new issue
Block a user