Custom Field regular expression

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
grisch111
Posts: 61
Joined: 16 Jan 2017, 10:36

Custom Field regular expression

Post by grisch111 »

Hey,

I updated my Mantis to 2.14.0. I have a custom field, its numeric and has the regular expression ([1-9][0-9]?[0-9]?)(.[0]?[25]?[5]?[75]?). Min legth 1, max lenght 5.
Due to the update some of my values changed from eg. 0.5 to 0 and if I want to enter a new value, eg. 0.5 it says invalid value. Before the update the same settings worked.

Deleting the regular expression makes it work, but thats not the solution I need.

I appreciate any help. Thanks.

BR
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Custom Field regular expression

Post by atrol »

0.5 is not a numeric value but a float.

According Admin Guide, numeric is integer https://www.mantisbt.org/docs/master/en ... stomfields

It was a bug, if this worked in older versions.
Please use Search before posting and read the Manual
grisch111
Posts: 61
Joined: 16 Jan 2017, 10:36

Re: Custom Field regular expression

Post by grisch111 »

Thank you for the response.
Jea when I checked the Admin Guide I found out that numeric is only integer. In Mantis 2.4.0 it was working.
I changed the field and the regular expression and it is working now.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Custom Field regular expression

Post by atrol »

This bug has been fixed in 2.8.0 https://www.mantisbt.org/bugs/view.php?id=16133
Please use Search before posting and read the Manual
Post Reply