Skip to content

Commit f41ca3a

Browse files
committed
Merge branch 'release/4.4.1.1'
2 parents ad0ad0b + 7e41c83 commit f41ca3a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes for Craft Commerce
22

3+
## 4.4.1.1 - 2024-01-12
4+
5+
- Fixed a PHP error that occurred when saving a sale. ([#3364](https://github.com/craftcms/commerce/issues/3364))
6+
37
## 4.4.1 - 2024-01-12
48

59
- Fixed a SQL error that could occur when updating to Commerce 4.4.0 on MySQL. ([#3367](https://github.com/craftcms/commerce/issues/3367))

src/controllers/SalesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function actionSave(): ?Response
142142
$sale->sortOrder = (int)$this->request->getBodyParam('sortOrder');
143143
$sale->ignorePrevious = (bool)$this->request->getBodyParam('ignorePrevious');
144144
$sale->stopProcessing = (bool)$this->request->getBodyParam('stopProcessing');
145-
$sale->categoryRelationshipType = $this->request->getBodyParam('categoryRelationshipType');
145+
$sale->categoryRelationshipType = $this->request->getBodyParam('categoryRelationshipType', $sale->categoryRelationshipType);
146146

147147
$applyAmount = Localization::normalizeNumber($applyAmount);
148148
if ($sale->apply == SaleRecord::APPLY_BY_PERCENT || $sale->apply == SaleRecord::APPLY_TO_PERCENT) {

0 commit comments

Comments
 (0)