From a33127f7b5f2b05e6f4b73bfc6d0c2e606ab329f Mon Sep 17 00:00:00 2001 From: Simon Sprankel Date: Wed, 26 Feb 2014 20:00:27 +0100 Subject: [PATCH] Make Sure That save_before Event Is Dispatched The parent `_beforeSave` method should be called, so that the save_before events are dispatched. --- app/code/Magento/CatalogInventory/Model/Stock/Item.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/code/Magento/CatalogInventory/Model/Stock/Item.php b/app/code/Magento/CatalogInventory/Model/Stock/Item.php index e2afd9b0e534f..f5e686db81173 100644 --- a/app/code/Magento/CatalogInventory/Model/Stock/Item.php +++ b/app/code/Magento/CatalogInventory/Model/Stock/Item.php @@ -801,6 +801,8 @@ protected function _addQuoteItemError(\Magento\Sales\Model\Quote\Item $item, $it */ protected function _beforeSave() { + parent::_beforeSave(); + // see if quantity is defined for this item type $typeId = $this->getTypeId(); if ($productTypeId = $this->getProductTypeId()) {