Skip to content

Commit

Permalink
Merge branch 'develop' into 4.3
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
  • Loading branch information
brandonkelly committed Sep 13, 2023
2 parents e08e474 + 3127d34 commit e427677
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- Added `craft\commerce\models\Discount::hasBillingAddressCondition()`.
- Added `craft\commerce\models\Discount::hasShippingAddressCondition()`.
- Deprecated `craft\commerce\elements\Order::setEmail()`. `Order::setCustomer()` should be used instead.
- Fixed an XSS vulnerability.

## 4.2.11 - 2023-06-05

Expand Down
6 changes: 3 additions & 3 deletions src/elements/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ protected function tableAttributeHtml(string $attribute): string
switch ($attribute) {
case 'type':
{
return Craft::t('site', $productType->name);
return Craft::t('site', Html::encode($productType->name));
}
case 'defaultSku':
{
Expand All @@ -1412,13 +1412,13 @@ protected function tableAttributeHtml(string $attribute): string
{
$taxCategory = $this->getTaxCategory();

return Craft::t('site', $taxCategory->name);
return Craft::t('site', Html::encode($taxCategory->name));
}
case 'shippingCategory':
{
$shippingCategory = $this->getShippingCategory();

return Craft::t('site', $shippingCategory->name);
return Craft::t('site', Html::encode($shippingCategory->name));
}
case 'defaultPrice':
{
Expand Down
2 changes: 1 addition & 1 deletion src/services/Emails.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ private function _createEmailQuery(): Query
'emails.to',
'emails.uid',
])
->orderBy('name')
->orderBy('emails.name')
->from([Table::EMAILS . ' emails']);
}

Expand Down

0 comments on commit e427677

Please sign in to comment.