File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
code/Magento/Sales/Block/Adminhtml/Order/Create/Form Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -165,16 +165,14 @@ public function getFormValues()
165
165
{
166
166
try {
167
167
$ customer = $ this ->customerRepository ->getById ($ this ->getCustomerId ());
168
- } catch (\Exception $ e ) {
169
- /** If customer does not exist do nothing. */
170
- }
171
- $ data = isset ($ customer )
172
- ? $ this ->_extensibleDataObjectConverter ->toFlatArray (
168
+ $ data = $ this ->_extensibleDataObjectConverter ->toFlatArray (
173
169
$ customer ,
174
170
[],
175
- \Magento \Customer \Api \Data \CustomerInterface::class
176
- )
177
- : [];
171
+ CustomerInterface::class
172
+ );
173
+ } catch (\Exception $ e ) {
174
+ $ data = [];
175
+ }
178
176
foreach ($ this ->getQuote ()->getData () as $ key => $ value ) {
179
177
if (strpos ($ key , 'customer_ ' ) === 0 ) {
180
178
$ data [substr ($ key , 9 )] = $ value ;
Original file line number Diff line number Diff line change 47
47
<preference for =" Magento\Framework\App\RequestSafetyInterface" type =" Magento\Framework\App\Request\Http" />
48
48
<preference for =" \Magento\Framework\Setup\SchemaSetupInterface" type =" \Magento\Setup\Module\Setup" />
49
49
<preference for =" \Magento\Framework\Setup\ModuleDataSetupInterface" type =" \Magento\Setup\Module\DataSetup" />
50
+ <preference for =" Magento\Framework\App\ExceptionHandlerInterface" type =" Magento\Framework\App\ExceptionHandler" />
50
51
<type name =" Magento\Store\Model\Store" >
51
52
<arguments >
52
53
<argument name =" currencyInstalled" xsi : type =" string" >system/currency/installed</argument >
1777
1778
type =" Magento\Framework\Mail\MimeMessage" />
1778
1779
<preference for =" Magento\Framework\Mail\MimePartInterface"
1779
1780
type =" Magento\Framework\Mail\MimePart" />
1781
+ <type name =" Magento\Framework\DB\Adapter\AdapterInterface" >
1782
+ <plugin name =" execute_commit_callbacks" type =" Magento\Framework\Model\ExecuteCommitCallbacks" />
1783
+ </type >
1780
1784
</config >
You can’t perform that action at this time.
0 commit comments