This commit is contained in:
spencerrlongg 2023-11-29 15:04:52 -06:00
parent c3492f1699
commit d794608a09

View file

@ -545,7 +545,7 @@ class AssetsController extends Controller
$asset->user_id = Auth::id();
// @todo: verify eol is working as expected - move to request? or do I want this at all?
// might just remove this and then use the method from here https://github.com/snipe/snipe-it/pull/13846
$asset->asset_eol_date = $request->validated()['asset_eol_date'] ?? $asset->present()->eol_date();
$asset->asset_eol_date = $request->validated()['asset_eol_date'] ?? $asset->present()->eol_date(); // so this isn't really necessary, because it's happening on the observer - but that might change?
$asset->archived = '0';
$asset->physical = '1';
$asset->depreciate = '0';