Skip to content

Commit 9f25ff5

Browse files
committed
Merge remote-tracking branch 'origin/MC-15187' into 2.2.8-develop-pr82
2 parents 46fe1e9 + bd0c465 commit 9f25ff5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Form/AbstractForm.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ protected function _prepareLayout()
9696
public function getForm()
9797
{
9898
if ($this->_form === null) {
99+
$storeId = $this->getCreateOrderModel()
100+
->getSession()
101+
->getStoreId();
102+
$this->_storeManager->setCurrentStore($storeId);
103+
99104
$this->_form = $this->_formFactory->create();
100105
$this->_prepareForm();
101106
}

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Form/Address.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,6 @@ public function getAddressCollectionJson()
217217
*/
218218
protected function _prepareForm()
219219
{
220-
$storeId = $this->getCreateOrderModel()
221-
->getSession()
222-
->getStoreId();
223-
$this->_storeManager->setCurrentStore($storeId);
224-
225220
$fieldset = $this->_form->addFieldset('main', ['no_container' => true]);
226221

227222
$addressForm = $this->_customerFormFactory->create('customer_address', 'adminhtml_customer_address');

0 commit comments

Comments
 (0)