File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
app/code/Magento/Sales/Block/Adminhtml/Order/Create/Form Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,11 @@ protected function _prepareLayout()
96
96
public function getForm ()
97
97
{
98
98
if ($ this ->_form === null ) {
99
+ $ storeId = $ this ->getCreateOrderModel ()
100
+ ->getSession ()
101
+ ->getStoreId ();
102
+ $ this ->_storeManager ->setCurrentStore ($ storeId );
103
+
99
104
$ this ->_form = $ this ->_formFactory ->create ();
100
105
$ this ->_prepareForm ();
101
106
}
Original file line number Diff line number Diff line change @@ -217,11 +217,6 @@ public function getAddressCollectionJson()
217
217
*/
218
218
protected function _prepareForm ()
219
219
{
220
- $ storeId = $ this ->getCreateOrderModel ()
221
- ->getSession ()
222
- ->getStoreId ();
223
- $ this ->_storeManager ->setCurrentStore ($ storeId );
224
-
225
220
$ fieldset = $ this ->_form ->addFieldset ('main ' , ['no_container ' => true ]);
226
221
227
222
$ addressForm = $ this ->_customerFormFactory ->create ('customer_address ' , 'adminhtml_customer_address ' );
You can’t perform that action at this time.
0 commit comments