Merge pull request #184 from JapSeyz/fix_no_tickets_selected
Fix no tickets selected returns an exception
This commit is contained in:
commit
54c610881f
|
|
@ -59,6 +59,13 @@ class EventCheckoutController extends Controller
|
|||
|
||||
$event = Event::findOrFail($event_id);
|
||||
|
||||
if (!$request->has('tickets')) {
|
||||
return response()->json([
|
||||
'status' => 'error',
|
||||
'message' => 'No tickets selected',
|
||||
]);
|
||||
}
|
||||
|
||||
$ticket_ids = $request->get('tickets');
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -491,7 +491,7 @@
|
|||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{!! Form::label('post_order_display_message', 'Message to display to attendees before after they have completed their order.', array('class'=>'control-label ')) !!}
|
||||
{!! Form::label('post_order_display_message', 'Message to display to attendees after they have completed their order.', array('class'=>'control-label ')) !!}
|
||||
|
||||
{!! Form::textarea('post_order_display_message', $event->post_order_display_message, [
|
||||
'class' => 'form-control',
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
{!! Form::label('location_post_code', 'Post Code', array('class'=>'control-label')) !!}
|
||||
{!! Form::text('location_post_code', $event->location_post_code, [
|
||||
'class'=>'form-control location_field',
|
||||
'placeholder'=>'E.g: Dublin.'
|
||||
'placeholder'=>'E.g: 94568.'
|
||||
]) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue