From a847d89917cca3f1680dbebc2611503a63fa5b1a Mon Sep 17 00:00:00 2001 From: Sergii Shkiria Date: Fri, 15 Dec 2017 12:17:17 +0200 Subject: [PATCH] magento/magento2#12374: Model hasDataChanges always true. -Added false for collection items. --- .../Magento/Eav/Model/Entity/Collection/AbstractCollection.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php b/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php index bd3fd17393d7c..f623cfc8c7b37 100644 --- a/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php +++ b/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php @@ -920,6 +920,7 @@ public function load($printQuery = false, $logQuery = false) foreach ($this->_items as $item) { $item->setOrigData(); $this->beforeAddLoadedItem($item); + $item->setDataChanges(false); } \Magento\Framework\Profiler::stop('set_orig_data');