mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Early returns if no change is made in the Asset so the 'update' action doesn't log
This commit is contained in:
parent
ab8dcdcc40
commit
1030ad9a27
|
@ -37,6 +37,10 @@ class AssetObserver
|
|||
}
|
||||
}
|
||||
|
||||
if (empty($changed)){
|
||||
return;
|
||||
}
|
||||
|
||||
$logAction = new Actionlog();
|
||||
$logAction->item_type = Asset::class;
|
||||
$logAction->item_id = $asset->id;
|
||||
|
|
Loading…
Reference in a new issue