From a9123754f5917f980ad11b80f73f144bd88fc33e Mon Sep 17 00:00:00 2001 From: spencerrlongg Date: Wed, 20 Sep 2023 14:34:42 -0500 Subject: [PATCH] remove unnecessary code --- app/Http/Controllers/Assets/AssetsController.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.php index d243b3c883..3a1197f4a3 100755 --- a/app/Http/Controllers/Assets/AssetsController.php +++ b/app/Http/Controllers/Assets/AssetsController.php @@ -401,10 +401,6 @@ class AssetsController extends Controller if ($asset->save()) { - if($asset->wasChanged('purchase_date') && $asset->eol_explicit == false){ - $asset_eol_date = Carbon::parse($asset->purchase_date)->addMonths($asset->model->eol)->format('Y-m-d'); - $asset->update(['asset_eol_date' => $asset_eol_date]); - } return redirect()->route('hardware.show', $assetId) ->with('success', trans('admin/hardware/message.update.success')); }