From e7470b55459820824353d96bc01b463571ab1a53 Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Tue, 31 Aug 2021 03:50:57 -0500 Subject: [PATCH 1/2] Remove e() function from the saved notes when updating an asset maintenance --- app/Http/Controllers/AssetMaintenancesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/AssetMaintenancesController.php b/app/Http/Controllers/AssetMaintenancesController.php index d05b190ba7..d994c28c51 100644 --- a/app/Http/Controllers/AssetMaintenancesController.php +++ b/app/Http/Controllers/AssetMaintenancesController.php @@ -212,7 +212,7 @@ class AssetMaintenancesController extends Controller $assetMaintenance->supplier_id = e($request->input('supplier_id')); $assetMaintenance->is_warranty = e($request->input('is_warranty')); $assetMaintenance->cost = Helper::ParseFloat(e($request->input('cost'))); - $assetMaintenance->notes = e($request->input('notes')); + $assetMaintenance->notes = $request->input('notes'); $asset = Asset::find(request('asset_id')); From d917ae51b708051331add163a7b72faedadc0e50 Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Tue, 31 Aug 2021 04:01:20 -0500 Subject: [PATCH 2/2] Remove e() function from other input fields --- app/Http/Controllers/AssetMaintenancesController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/AssetMaintenancesController.php b/app/Http/Controllers/AssetMaintenancesController.php index d994c28c51..c9fb3340ee 100644 --- a/app/Http/Controllers/AssetMaintenancesController.php +++ b/app/Http/Controllers/AssetMaintenancesController.php @@ -209,9 +209,9 @@ class AssetMaintenancesController extends Controller return static::getInsufficientPermissionsRedirect(); } - $assetMaintenance->supplier_id = e($request->input('supplier_id')); - $assetMaintenance->is_warranty = e($request->input('is_warranty')); - $assetMaintenance->cost = Helper::ParseFloat(e($request->input('cost'))); + $assetMaintenance->supplier_id = $request->input('supplier_id'); + $assetMaintenance->is_warranty = $request->input('is_warranty'); + $assetMaintenance->cost = Helper::ParseFloat($request->input('cost')); $assetMaintenance->notes = $request->input('notes'); $asset = Asset::find(request('asset_id'));