diff --git a/app/views/dashboard/incidents/add.blade.php b/app/views/dashboard/incidents/add.blade.php index b7c1df42..ad1f60e8 100644 --- a/app/views/dashboard/incidents/add.blade.php +++ b/app/views/dashboard/incidents/add.blade.php @@ -16,9 +16,9 @@ @if($incident = Session::get('incident'))
@if($incident->isValid()) - {{ sprintf("%s %s", trans('dashboard.notifications.awesome'), trans('dashboard.incidents.add.success')) }} + {{ sprintf("%s %s", trans('dashboard.notifications.awesome'), trans('dashboard.incidents.add.success')) }} @else - {{ sprintf("%s %s", trans('dashboard.notifications.whoops'), trans('dashboard.incidents.add.failure').' '.$incident->getErrors()) }} + {{ sprintf("%s %s", trans('dashboard.notifications.whoops'), trans('dashboard.incidents.add.failure').' '.$incident->getErrors()) }} @endif
@endif @@ -27,7 +27,7 @@
- +

@@ -54,7 +54,7 @@
- + {{ trans('forms.incidents.message-help') }}
diff --git a/src/Http/Controllers/DashIncidentController.php b/src/Http/Controllers/DashIncidentController.php index a072a278..f3889022 100644 --- a/src/Http/Controllers/DashIncidentController.php +++ b/src/Http/Controllers/DashIncidentController.php @@ -70,10 +70,9 @@ class DashIncidentController extends Controller */ public function createIncidentAction() { - $_incident = Binput::get('incident'); - $incident = Incident::create($_incident); + $incident = Incident::create(Binput::get('incident')); - return Redirect::back()->with('incident', $incident); + return Redirect::back()->withInput(Binput::all())->with('incident', $incident); } /**