Fix bug where offline payment would fail if no payment gateway was configured (issue #170)

This commit is contained in:
Dave Earley 2016-07-24 23:51:16 +01:00
parent 45fb180f1b
commit 2de84966e4
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ class EventCheckoutController extends Controller
if (isset($ticket_order['transaction_id'])) {
$order->transaction_id = $ticket_order['transaction_id'][0];
}
if ($ticket_order['order_requires_payment']) {
if ($ticket_order['order_requires_payment'] && !isset($request_data['pay_offline']) ) {
$order->payment_gateway_id = $ticket_order['payment_gateway']->id;
}
$order->first_name = $request_data['order_first_name'];