Fixed bug where order note text is saved as order ID

This commit is contained in:
Nedim Uka
2018-11-19 11:31:46 +01:00
parent a07c0e4584
commit 752df56d4a

View File

@@ -56,7 +56,7 @@ class Wiaas_Support_Api {
$success = $mailer->send( $recipient, $subject, $message, $headers );
if ($success) {
wc_create_order_note($message = $request['id'] , $message, true );
wc_create_order_note($request['id'] , $message, true );
return wiaas_api_notice('EMAIL_SENT', 'success');
}