Skip to content

Commit

Permalink
Fix double email
Browse files Browse the repository at this point in the history
  • Loading branch information
Phạm Quốc Đạt committed Aug 29, 2018
1 parent f5f9bdc commit e5affda
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lemonway/controllers/front/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,16 +228,6 @@ public function postProcess()
}
}

try {
$history = new OrderHistory();
$history->id_order = (int)$order_id;

$history->changeIdOrderState($id_order_state, $order, false);
$history->save();
} catch (Exception $e) {
PrestaShopLogger::addLog($e->getMessage(), 4);
}

if ($methodInstance->isSplitPayment()) {
/* @var $invoiceCollection PrestaShopCollectionCore */
$invoiceCollection = $order->getInvoicesCollection();
Expand Down Expand Up @@ -266,9 +256,6 @@ public function postProcess()
}
}
}

$templateVars = array();
$history->sendEmail($order, $templateVars);
} else {
//@TODO throw error for not http method supported
die("HTTP Method not Allowed");
Expand Down

0 comments on commit e5affda

Please sign in to comment.