File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
app/code/Magento/Sales/Block/Adminhtml/Order/Create/Form Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,7 @@ class Account extends AbstractForm
38
38
* @var \Magento\Framework\Api\ExtensibleDataObjectConverter
39
39
*/
40
40
protected $ _extensibleDataObjectConverter ;
41
-
42
41
private const XML_PATH_EMAIL_REQUIRED_CREATE_ORDER = 'customer/create_account/email_required_create_order ' ;
43
-
44
42
/**
45
43
* @param \Magento\Backend\Block\Template\Context $context
46
44
* @param \Magento\Backend\Model\Session\Quote $sessionQuote
@@ -168,20 +166,19 @@ public function getFormValues()
168
166
} catch (\Exception $ e ) {
169
167
$ data = [];
170
168
}
171
-
172
- $ data = isset ($ customer )
169
+ $ data = isset ($ customer )
173
170
? $ this ->_extensibleDataObjectConverter ->toFlatArray (
174
171
$ customer ,
175
172
[],
176
173
\Magento \Customer \Api \Data \CustomerInterface::class
177
174
)
178
175
: [];
179
-
180
- foreach ($ this ->getQuote ()->getData () as $ key => $ value ) {
176
+ foreach ($ this ->getQuote ()->getData () as $ key => $ value ) {
181
177
if (strpos ($ key , 'customer_ ' ) === 0 ) {
182
178
$ data [substr ($ key , 9 )] = $ value ;
183
179
}
184
180
}
181
+
185
182
if ($ this ->getQuote ()->getCustomerEmail ()) {
186
183
$ data ['email ' ] = $ this ->getQuote ()->getCustomerEmail ();
187
184
}
You can’t perform that action at this time.
0 commit comments