3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-03-29 11:56:19 +00:00

Log checkouts (#2772)

* Ensure the log has a target before trying to fetch the associated company

* Log creation of items, both in importer and manually
This commit is contained in:
Daniel Meltzer
2016-10-12 20:45:32 -05:00
committed by snipe
parent 219ef23126
commit e85241af6a
9 changed files with 37 additions and 3 deletions

View File

@ -107,6 +107,7 @@ class ComponentsController extends Controller
// Was the component created?
if ($component->save()) {
$component->logCreate();
// Redirect to the new component page
return redirect()->to("admin/components")->with('success', trans('admin/components/message.create.success'));
}