Skip to content

Commit 31be067

Browse files
lukeholderCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent aaa4f42 commit 31be067

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controllers/OrdersController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,7 @@ private function _updateOrder(Order $order, $orderRequestData, bool $tryAutoSet
18411841
foreach ($orderRequestData['order']['notices'] ?? [] as $notice) {
18421842
$notices[] = Craft::createObject([
18431843
'class' => OrderNotice::class,
1844-
'attributes' => $notice,
1844+
'attributes' => array_merge($notice, ['noticeType' => OrderNotice::NOTICE_TYPE_CUSTOMER]),
18451845
]);
18461846
}
18471847
foreach ($orderRequestData['order']['adminNotices'] ?? [] as $notice) {

0 commit comments

Comments
 (0)