Skip to content

Commit 0183d21

Browse files
committed
ACPT-1191: Fix Quote related issues on Application Server
1 parent a1806e7 commit 0183d21

File tree

3 files changed

+12
-21
lines changed

3 files changed

+12
-21
lines changed

app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute.php

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -209,24 +209,6 @@ protected function _beforeSave(AbstractModel $object)
209209
return parent::_beforeSave($object);
210210
}
211211

212-
/**
213-
* @inheritDoc
214-
*/
215-
public function save(\Magento\Framework\Model\AbstractModel $object)
216-
{
217-
$this->pillPut->put();
218-
return parent::save($object);
219-
}
220-
221-
/**
222-
* @inheritDoc
223-
*/
224-
public function delete(\Magento\Framework\Model\AbstractModel $object)
225-
{
226-
$this->pillPut->put();
227-
return parent::delete($object);
228-
}
229-
230212
/**
231213
* @inheritdoc
232214
*
@@ -263,6 +245,7 @@ protected function _afterSave(AbstractModel $object)
263245
$object
264246
);
265247
$this->getConfig()->clear();
248+
$this->pillPut->put();
266249
return parent::_afterSave($object);
267250
}
268251

@@ -277,6 +260,7 @@ protected function _afterSave(AbstractModel $object)
277260
protected function _afterDelete(AbstractModel $object)
278261
{
279262
$this->getConfig()->clear();
263+
$this->pillPut->put();
280264
return $this;
281265
}
282266

app/code/Magento/Quote/Model/QuoteManagement.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
use Magento\Sales\Api\Data\OrderInterface;
4343
use Magento\Sales\Api\Data\OrderInterfaceFactory as OrderFactory;
4444
use Magento\Sales\Api\OrderManagementInterface as OrderManagement;
45-
use Magento\Store\Model\StoreManager;
4645
use Magento\Store\Model\StoreManagerInterface;
4746

4847
/**
@@ -783,6 +782,5 @@ private function rollbackAddresses(
783782
public function _resetState(): void
784783
{
785784
$this->addressesToSync = [];
786-
$this->storeManager = ObjectManager::getInstance()->get(StoreManager::class);
787785
}
788786
}

app/code/Magento/Store/Model/StoreManager.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
*/
1919
class StoreManager implements
2020
\Magento\Store\Model\StoreManagerInterface,
21-
\Magento\Store\Api\StoreWebsiteRelationInterface
21+
\Magento\Store\Api\StoreWebsiteRelationInterface,
22+
ResetAfterRequestInterface
2223
{
2324
/**
2425
* Application run code
@@ -329,4 +330,12 @@ public function __debugInfo()
329330
{
330331
return ['currentStoreId' => $this->currentStoreId];
331332
}
333+
334+
/**
335+
* @inheritDoc
336+
*/
337+
public function _resetState(): void
338+
{
339+
$this->reinitStores();
340+
}
332341
}

0 commit comments

Comments
 (0)