Kevin Carwile

Fixing the IPS4 Number field decimals bug

Recommended Posts

IPS4 has an annoying bug that has been around since day 1 and makes it impossible to use a number field with a decimals setting other than 0 or 2. Bug reports have been submitted but it hasn't been fixed yet, so here is how to fix it on your own.

Edit your theme template:

core > global > forms > number

Change line 28 from

step="{expression="number_format( $step, 2, '.', '' )"}"


step="{expression="number_format( $step, $decimals, '.', '' )"}"


  • Like 1

Share this post

Link to post
Share on other sites
On 10/7/2018 at 12:46 PM, alexis said:

As far as I can see, this bug has been finally fixed in the IPS version 4.3.6!



Thanks, good to know! It helps in one of my projects!

Share this post

Link to post
Share on other sites

Your content will need to be approved by a moderator

You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.