Merge pull request #11171 from inietov/fixes/checkout_date_missing_in_mail_when_importing_assets

Fixes Checkout date missing in asset delivery mail
This commit is contained in:
snipe 2022-05-19 15:49:43 -07:00 committed by GitHub
commit a37fbe6abf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,7 +130,7 @@ class AssetImporter extends ItemImporter
//-- user_id is a property of the abstract class Importer, which this class inherits from and it's setted by
//-- the class that needs to use it (command importer or GUI importer inside the project).
if (isset($target)) {
$asset->fresh()->checkOut($target, $this->user_id);
$asset->fresh()->checkOut($target, $this->user_id, date('Y-m-d H:i:s'));
}
return;