Fix an issue when trying to checkin a license seat. [ch46] (#6599)

* Fix an issue when trying to checkin a license seat.

* Minor changes in the checkin view, so it can returns to the expected place where the checkin is launched.
This commit is contained in:
Ivan Nieto
2019-01-17 22:36:40 -06:00
committed by snipe
parent 1eace04ad9
commit 310ed0f1d3
3 changed files with 3 additions and 3 deletions
@@ -91,7 +91,7 @@ class LicenseCheckinController extends Controller
// Was the asset updated?
if ($licenseSeat->save()) {
event(new CheckoutableCheckedIn($license, $return_to, Auth::user(), $request->input('note')));
event(new CheckoutableCheckedIn($licenseSeat, $return_to, Auth::user(), $request->input('note')));
if ($backTo=='user') {
return redirect()->route("users.show", $return_to->id)->with('success', trans('admin/licenses/message.checkin.success'));