Fixed incorrect route for groups edit

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2020-05-01 01:05:48 -07:00
parent 7eb70e17e0
commit 31c5350941
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -2,7 +2,7 @@
'createText' => trans('admin/groups/titles.create') , 'createText' => trans('admin/groups/titles.create') ,
'updateText' => trans('admin/groups/titles.update'), 'updateText' => trans('admin/groups/titles.update'),
'item' => $group, 'item' => $group,
'formAction' => ($group !== null && $group->id !== null) ? route('groups.index', ['group' => $group->id]) : route('groups.store'), 'formAction' => ($group !== null && $group->id !== null) ? route('groups.update', ['group' => $group->id]) : route('groups.store'),
]) ])
@section('content') @section('content')