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:
@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user