From 97dfdf2f78d65758a227c709547cb43b6e040b59 Mon Sep 17 00:00:00 2001 From: Steve Ireland Date: Sun, 4 Jun 2023 08:47:12 -0400 Subject: [PATCH] setAttribute should be setTextAttribute for a group separator symbol. --- app/Helpers/locale_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/locale_helper.php b/app/Helpers/locale_helper.php index 133de9ae0..42c1a9630 100644 --- a/app/Helpers/locale_helper.php +++ b/app/Helpers/locale_helper.php @@ -384,7 +384,7 @@ function to_decimals(?float $number, string $decimals = NULL, int $type = Number if(empty($config['thousands_separator'])) { - $fmt->setAttribute(NumberFormatter::GROUPING_SEPARATOR_SYMBOL, ''); + $fmt->setTextAttribute(NumberFormatter::GROUPING_SEPARATOR_SYMBOL, ''); } $fmt->setSymbol(NumberFormatter::CURRENCY_SYMBOL, $config['currency_symbol']);