This commit is contained in:
Daniel Camargo 2013-05-23 14:16:25 -03:00
parent 9c7c617bc0
commit 08dbc20eda

View File

@ -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();
}