Skip to content

Commit

Permalink
Dont allow title change for now
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Oct 19, 2023
1 parent 8d31b99 commit e890b89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/elements/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -2927,7 +2927,7 @@ public function setShippingAddress(AddressElement|array|null $address): void
}

$this->shippingAddressId = $address->id;
$address->title = $address->title ?: Craft::t('commerce', 'Shipping Address');
$address->title = Craft::t('commerce', 'Shipping Address');
$this->_shippingAddress = $address;
}

Expand Down Expand Up @@ -3022,7 +3022,7 @@ public function setBillingAddress(AddressElement|array|null $address): void

$address->ownerId = $this->id;
$this->billingAddressId = $address->id;
$address->title = $address->title ?: Craft::t('commerce', 'Billing Address');
$address->title = Craft::t('commerce', 'Billing Address');
$this->_billingAddress = $address;
}

Expand Down

0 comments on commit e890b89

Please sign in to comment.