Merge pull request #184 from JapSeyz/fix_no_tickets_selected

Fix no tickets selected returns an exception
This commit is contained in:
Dave Earley 2016-08-29 20:22:22 +01:00 committed by GitHub
commit 54c610881f
3 changed files with 9 additions and 2 deletions

View File

@ -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');
/*

View File

@ -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',

View File

@ -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>