We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77496c4 commit fdfa5c6Copy full SHA for fdfa5c6
app/code/Magento/Store/Model/Store.php
@@ -1056,14 +1056,14 @@ public function getWebsiteId()
1056
*/
1057
public function afterSave()
1058
{
1059
+ $this->_storeManager->reinitStores();
1060
if ($this->isObjectNew()) {
1061
$event = $this->_eventPrefix . '_add';
1062
} else {
1063
$event = $this->_eventPrefix . '_edit';
1064
}
1065
$store = $this;
1066
$this->getResource()->addCommitCallback(function () use ($event, $store) {
- $this->_storeManager->reinitStores();
1067
$this->eventManager->dispatch($event, ['store' => $store]);
1068
});
1069
return parent::afterSave();
0 commit comments