mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-06 04:25:44 +00:00
Log fixes (#2972)
* Make sure we set target_type when creating an accept asset log, and add a migration to fix older ones. * On a declined log, we don't have an assigned user. Guard against this conditional (which realistically should never be hit?) Should fix #2940 * Fix codacy issues with migration.
This commit is contained in:
@ -379,6 +379,7 @@ class ViewAssetsController extends Controller
|
||||
}
|
||||
|
||||
$logaction->target_id = $findlog->target_id;
|
||||
$logaction->target_type = User::class;
|
||||
$logaction->note = e(Input::get('note'));
|
||||
$logaction->updated_at = date("Y-m-d H:i:s");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user