Skip to content

Commit

Permalink
Merge pull request #12700 from rioug/fix-number-rounding-with-hu-locale
Browse files Browse the repository at this point in the history
[BUU] fix error 500 on hungary instance
  • Loading branch information
rioug authored Jul 23, 2024
2 parents 146296d + 0f04b2f commit dfea0cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/spree/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ def ensure_standard_variant
def variant_unit_with_scale
scale_clean = ActiveSupport::NumberHelper.number_to_rounded(variant_unit_scale,
precision: nil,
significant: false,
strip_insignificant_zeros: true)
[variant_unit, scale_clean].compact_blank.join("_")
end
Expand Down

0 comments on commit dfea0cd

Please sign in to comment.