Skip to content

Commit 7e7a152

Browse files
committed
ACP2E-4167: [CLOUD] Admin Report does not show details when inventory is updated
1 parent df7bff1 commit 7e7a152

File tree

1 file changed

+12
-1
lines changed
  • app/code/Magento/CatalogInventory/Model/Adminhtml/Stock

1 file changed

+12
-1
lines changed

app/code/Magento/CatalogInventory/Model/Adminhtml/Stock/Item.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ public function __construct(
7777
$resourceCollection,
7878
$data
7979
);
80-
80+
if (!empty($data)) {
81+
$this->setOrigData();
82+
}
8183
$this->groupManagement = $groupManagement;
8284
}
8385

@@ -143,4 +145,13 @@ public function getIdentities()
143145

144146
return $tags;
145147
}
148+
149+
/**
150+
* @inheritDoc
151+
*/
152+
public function afterLoad()
153+
{
154+
parent::afterLoad();
155+
$this->setOrigData();
156+
}
146157
}

0 commit comments

Comments
 (0)