Skip to content

Commit 169c615

Browse files
authored
fix #8905: initial deactivation of sameAsBuyer (#8907)
1 parent c51d56c commit 169c615

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

app/components/forms/orders/order-form.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,6 @@ export default Component.extend(FormMixin, {
2929
buyerHasFirstName : readOnly('data.user.firstName'),
3030
buyerHasLastName : readOnly('data.user.lastName'),
3131
holders : computed('data.attendees', 'buyer', function() {
32-
this.data.attendees.forEach(attendee => {
33-
if (this.buyerFirstName && this.buyerLastName) {
34-
attendee.set('firstname', this.buyerFirstName);
35-
attendee.set('lastname', this.buyerLastName);
36-
attendee.set('email', this.buyer.get('email'));
37-
} else {
38-
attendee.set('firstname', '');
39-
attendee.set('lastname', '');
40-
attendee.set('email', '');
41-
}
42-
});
4332
return this.data.attendees;
4433
}),
4534
isPaidOrder: computed('data', function() {

app/models/attendee.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default ModelBase.extend({
77
/**
88
* Attributes
99
*/
10-
sameAsBuyer : attr('boolean', { defaultValue: true }),
10+
sameAsBuyer : attr('boolean', { defaultValue: false }),
1111
city : attr('string'),
1212
firstname : attr('string'),
1313
lastname : attr('string'),

0 commit comments

Comments
 (0)