partial #1200
This commit is contained in:
parent
9c7c617bc0
commit
08dbc20eda
@ -595,12 +595,10 @@ class Crunchbutton_Order extends Cana_Table {
|
||||
|
||||
public function resend_notify(){
|
||||
$order = $this;
|
||||
Log::debug([ 'order' => $order->id_order, 'action' => 'restarting starting notification', 'type' => 'notification']);
|
||||
$order->confirmed = 0;
|
||||
$order->save();
|
||||
// Log::debug([ 'order' => $order->id_order, 'action' => 'restarting starting notification', 'type' => 'notification']);
|
||||
// Delete all the notification log in order to start a new one
|
||||
Notification_Log::DeleteFromOrder( $order->id_order );
|
||||
Log::debug([ 'order' => $order->id_order, 'action' => 'deleted previous notifications', 'type' => 'notification']);
|
||||
// Notification_Log::DeleteFromOrder( $order->id_order );
|
||||
// Log::debug([ 'order' => $order->id_order, 'action' => 'deleted previous notifications', 'type' => 'notification']);
|
||||
$order->notify();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user