Skip to content

Commit ed48e0a

Browse files
author
Dmytro Voskoboinikov
committed
MAGETWO-35620: Implement Observer
1 parent de967c7 commit ed48e0a

File tree

3 files changed

+3
-6
lines changed
  • app/code/Magento

3 files changed

+3
-6
lines changed

app/code/Magento/Sales/Controller/Adminhtml/Order/Creditmemo/Save.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ public function execute()
8989
);
9090

9191
$creditmemo->setCustomerNote($data['comment_text']);
92+
$creditmemo->setCustomerNoteNotify(isset($data['comment_customer_notify']));
9293
}
9394

94-
$creditmemo->setCustomerNoteNotify(isset($data['comment_customer_notify']));
95-
9695
if (isset($data['do_refund'])) {
9796
$creditmemo->setRefundRequested(true);
9897
}

app/code/Magento/Sales/Controller/Adminhtml/Order/Invoice/Save.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,9 @@ public function execute()
155155
);
156156

157157
$invoice->setCustomerNote($data['comment_text']);
158+
$invoice->setCustomerNoteNotify(isset($data['comment_customer_notify']));
158159
}
159160

160-
$invoice->setCustomerNoteNotify(isset($data['comment_customer_notify']));
161-
162161
$invoice->register();
163162

164163
$invoice->getOrder()->setCustomerNoteNotify(!empty($data['send_email']));

app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ public function execute()
108108
);
109109

110110
$shipment->setCustomerNote($data['comment_text']);
111+
$shipment->setCustomerNoteNotify(isset($data['comment_customer_notify']));
111112
}
112113

113-
$shipment->setCustomerNoteNotify(isset($data['comment_customer_notify']));
114-
115114
$shipment->register();
116115

117116
$shipment->getOrder()->setCustomerNoteNotify(!empty($data['send_email']));

0 commit comments

Comments
 (0)