Fixed logging for asset model restore
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
8d52fa51b1
commit
84f14a05bd
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ class AssetModelsController extends Controller
|
||||||
|
|
||||||
if ($model->restore()) {
|
if ($model->restore()) {
|
||||||
$logaction = new Actionlog();
|
$logaction = new Actionlog();
|
||||||
$logaction->item_type = User::class;
|
$logaction->item_type = AssetModel::class;
|
||||||
$logaction->item_id = $model->id;
|
$logaction->item_id = $model->id;
|
||||||
$logaction->created_at = date('Y-m-d H:i:s');
|
$logaction->created_at = date('Y-m-d H:i:s');
|
||||||
$logaction->user_id = auth()->id();
|
$logaction->user_id = auth()->id();
|
||||||
|
|
Loading…
Add table
Reference in a new issue