Skip to content

Commit a0674e2

Browse files
committed
Merge remote-tracking branch 'mpi/MC-23029' into Chaika-PR-2019-11-19
2 parents 78a7e3e + 9e12ac2 commit a0674e2

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)