Cms: CP badge counters use decimals without the `intl` extension installed

Created on 15 Mar 2019  路  1Comment  路  Source: craftcms/cms

Description

On a site without the intl extension installed, badge counters (e.g. Utilities -> available updates) display with decimals (i.e. 1.00 instead of 1).

The badge counters are localized (i.e. changing the CP's language to nb display badge counters as 1,00).

Installing the intl extension fixes the issue.

image

Steps to reproduce

  1. Install Craft 3.1.18 on a server without the intl extension installed
    2.

Additional info

  • Craft version: 3.1.18
  • PHP version: 7.2.14
  • Database driver & version: MySQL 5.7.24
  • Plugins & versions:

image

Most helpful comment

Fixed for the next release, thanks for reporting!

>All comments

Fixed for the next release, thanks for reporting!

Was this page helpful?
0 / 5 - 0 ratings