Skip to content

Commit 9e12ac2

Browse files
committed
MC-23029: The type of the State input field for the multistore is incorrect when restricted by country
- Fix wrong scope for order address edit form on backend
1 parent 29cbd2f commit 9e12ac2

File tree

1 file changed

+2
-4
lines changed
  • app/code/Magento/Sales/Block/Adminhtml/Order/Create/Form

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
/**
1616
* Order create address form
17+
*
1718
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1819
*/
1920
class Address extends \Magento\Sales\Block\Adminhtml\Order\Create\Form\AbstractForm
@@ -216,15 +217,12 @@ public function getAddressCollectionJson()
216217
* Prepare Form and add elements to form
217218
*
218219
* @return $this
219-
*
220220
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
221221
* @SuppressWarnings(PHPMD.NPathComplexity)
222222
*/
223223
protected function _prepareForm()
224224
{
225-
$storeId = $this->getCreateOrderModel()
226-
->getSession()
227-
->getStoreId();
225+
$storeId = $this->getAddressStoreId();
228226
$this->_storeManager->setCurrentStore($storeId);
229227

230228
$fieldset = $this->_form->addFieldset('main', ['no_container' => true]);

0 commit comments

Comments
 (0)