3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-06 04:25:44 +00:00
* 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:
Daniel Meltzer
2016-11-24 14:48:14 -06:00
committed by snipe
parent dd3718489a
commit b8cbf0022e
3 changed files with 39 additions and 1 deletions

View File

@ -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");