Merge pull request #11263 from inietov/fixes/dont_save_update_action_if_nothings_changed

Fixes log update action even if no changes are made to assets [sc-19131]
This commit is contained in:
snipe 2022-06-06 20:06:19 -07:00 committed by GitHub
commit 7faaa4ce24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,10 @@ class AssetObserver
}
}
if (empty($changed)){
return;
}
$logAction = new Actionlog();
$logAction->item_type = Asset::class;
$logAction->item_id = $asset->id;