3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-03-01 13:59:07 +00:00

Make delete routes work. (#3077)

* Make delete routes work.  We put a little form in the modal that spoofs the delete field.

* Fix route on creating a user.

* Fix redundant id parameter.

* Port acceptance tests to new urls.
This commit is contained in:
Daniel Meltzer
2016-12-19 12:42:33 -06:00
committed by snipe
parent c7e98366be
commit ae2cb5fe68
25 changed files with 49 additions and 5798 deletions

View File

@ -172,7 +172,7 @@ class UsersController extends Controller
$m->subject(trans('mail.welcome', ['name' => $user->first_name]));
});
}
return redirect::route('users')->with('success', trans('admin/users/message.success.create'));
return redirect::route('users.index')->with('success', trans('admin/users/message.success.create'));
}
return redirect()->back()->withInput()->withErrors($user->getErrors());