From 3cbc3d1a29744a9c294fc3a71dd465ead961cd30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Tue, 9 Mar 2021 17:29:54 +0300 Subject: [PATCH] fixed currencies precision field.. --- app/Http/Controllers/Settings/Currencies.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/Http/Controllers/Settings/Currencies.php b/app/Http/Controllers/Settings/Currencies.php index 09be6ab8b..60f339836 100644 --- a/app/Http/Controllers/Settings/Currencies.php +++ b/app/Http/Controllers/Settings/Currencies.php @@ -58,11 +58,11 @@ class Currencies extends Controller } $precisions = (object) [ - 0 => 0, - 1 => 1, - 2 => 2, - 3 => 3, - 4 => 4, + '0' => '0', + '1' => '1', + '2' => '2', + '3' => '3', + '4' => '4', ]; return view('settings.currencies.create', compact('codes', 'precisions')); @@ -125,11 +125,11 @@ class Currencies extends Controller $currency->default_currency = ($currency->code == setting('default.currency')) ? 1 : 0; $precisions = (object) [ - 0 => 0, - 1 => 1, - 2 => 2, - 3 => 3, - 4 => 4, + '0' => '0', + '1' => '1', + '2' => '2', + '3' => '3', + '4' => '4', ]; return view('settings.currencies.edit', compact('currency', 'codes', 'precisions'));