Fixed incorrect has vs input

This commit is contained in:
snipe 2017-11-30 13:40:26 -08:00
parent cc5eee1890
commit cefdca3d22

View file

@ -1107,7 +1107,7 @@ class AssetsController extends Controller
$update_array['purchase_date'] = $request->input('purchase_date');
}
if ($request->has('purchase_cost')) {
$update_array['purchase_cost'] = Helper::ParseFloat($request->has('purchase_cost'));
$update_array['purchase_cost'] = Helper::ParseFloat($request->input('purchase_cost'));
}
if ($request->has('supplier_id')) {
$update_array['supplier_id'] = $request->input('supplier_id');