mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Fixed typo
This commit is contained in:
parent
b326d8593b
commit
ec4161a959
|
@ -66,7 +66,7 @@ class GroupsController extends Controller
|
||||||
if ($group->save()) {
|
if ($group->save()) {
|
||||||
return redirect()->route("groups.index")->with('success', trans('admin/groups/message.success.create'));
|
return redirect()->route("groups.index")->with('success', trans('admin/groups/message.success.create'));
|
||||||
}
|
}
|
||||||
return redirect()->route('groups.create')->withInput()->withErrors($group->getErrors());
|
return redirect()->back()->withInput()->withErrors($group->getErrors());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -132,7 +132,7 @@ class GroupsController extends Controller
|
||||||
{
|
{
|
||||||
if (!config('app.lock_passwords')) {
|
if (!config('app.lock_passwords')) {
|
||||||
if (!$group = Group::find($id)) {
|
if (!$group = Group::find($id)) {
|
||||||
return redirect()->c->with('error', trans('admin/groups/message.group_not_found', compact('id')));
|
return redirect()->route('groups.index')->with('error', trans('admin/groups/message.group_not_found', compact('id')));
|
||||||
}
|
}
|
||||||
$group->delete();
|
$group->delete();
|
||||||
// Redirect to the group management page
|
// Redirect to the group management page
|
||||||
|
|
Loading…
Reference in a new issue