File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
app/code/Magento/Sales/Block/Adminhtml/Order/Create/Form Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -163,16 +163,14 @@ public function getFormValues()
163
163
{
164
164
try {
165
165
$ customer = $ this ->customerRepository ->getById ($ this ->getCustomerId ());
166
- } catch (\Exception $ e ) {
167
- /** If customer does not exist do nothing. */
168
- }
169
- $ data = isset ($ customer )
170
- ? $ this ->_extensibleDataObjectConverter ->toFlatArray (
166
+ $ data = $ this ->_extensibleDataObjectConverter ->toFlatArray (
171
167
$ customer ,
172
168
[],
173
- \Magento \Customer \Api \Data \CustomerInterface::class
174
- )
175
- : [];
169
+ CustomerInterface::class
170
+ );
171
+ } catch (\Exception $ e ) {
172
+ $ data = [];
173
+ }
176
174
foreach ($ this ->getQuote ()->getData () as $ key => $ value ) {
177
175
if (strpos ($ key , 'customer_ ' ) === 0 ) {
178
176
$ data [substr ($ key , 9 )] = $ value ;
You can’t perform that action at this time.
0 commit comments