A free open source IT asset/license management system
Fixed #4494 - use audit settings for asset audit pre-populaton
snipe43c1e893c0b6
diff --git a/app/Http/Controllers/AssetsController.php b/app/Http/Controllers/AssetsController.phpindex 873446d420..4562ef39d8 100755--- a/app/Http/Controllers/AssetsController.php+++ b/app/Http/Controllers/AssetsController.php@@ -1238,8 +1238,9 @@ class AssetsController extends Controllerpublic function audit($id){+ $settings = Setting::getSettings();$this->authorize('audit', Asset::class);- $dt = Carbon::now()->addMonths(12)->toDateString();+ $dt = Carbon::now()->addMonths($settings->audit_interval)->toDateString();$asset = Asset::findOrFail($id);return view('hardware/audit')->with('asset', $asset)->with('next_audit_date', $dt)->with('locations_list');}