File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
app/code/Magento/Sales/view/adminhtml/web/order/create Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -270,23 +270,16 @@ define([
270
270
resetShipping = true ;
271
271
}
272
272
273
- if ( type === 'billing' && ! this . shippingAsBilling ) {
274
- resetSelectedBillingAddress = true ;
275
- }
276
-
277
273
if ( resetShipping ) {
278
274
data [ 'reset_shipping' ] = true ;
279
275
}
280
276
281
- if ( this . selectAddressEvent === false ) {
277
+ if ( name !== 'customer_address_id' && this . selectAddressEvent === false ) {
282
278
if ( this . shippingAsBilling ) {
283
279
$ ( 'order-shipping_address_customer_address_id' ) . value = '' ;
284
280
}
285
- // customer_address_id can not be set to blank, if changed to other saved addresses from dropdown list
286
- // for both billing & shipping while no change made in other address fields
287
- if ( name !== 'customer_address_id' ) {
288
- $ ( 'order-' + type + '_address_customer_address_id' ) . value = '' ;
289
- }
281
+
282
+ $ ( 'order-' + type + '_address_customer_address_id' ) . value = '' ;
290
283
}
291
284
292
285
data [ 'order[' + type + '_address][customer_address_id]' ] = null ;
You can’t perform that action at this time.
0 commit comments