diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.php index ac9287b53e..214b27eb20 100644 --- a/app/Http/Controllers/Api/AssetsController.php +++ b/app/Http/Controllers/Api/AssetsController.php @@ -987,10 +987,14 @@ class AssetsController extends Controller $asset->unsetEventDispatcher(); $asset->next_audit_date = $dt; + if ($request->filled('audit_type')) { + $asset->audit_type = $request->input('audit_type'); + } + if ($request->filled('next_audit_date')) { $asset->next_audit_date = $request->input('next_audit_date'); } - + // Check to see if they checked the box to update the physical location, // not just note it in the audit notes if ($request->input('update_location') == '1') { diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.php index 8cfc89004f..51af943564 100755 --- a/app/Http/Controllers/Assets/AssetsController.php +++ b/app/Http/Controllers/Assets/AssetsController.php @@ -851,7 +851,7 @@ class AssetsController extends Controller $asset->next_audit_date = $request->input('next_audit_date'); $asset->last_audit_date = date('Y-m-d H:i:s'); - $asset->audit_type = $request->input('audit_type', 'physical'); + $asset->audit_type = $request->input('audit_type'); // Check to see if they checked the box to update the physical location, // not just note it in the audit notes