Page 1 of 1

Custom Field regular expression

Posted: 20 Jun 2018, 11:33
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

Re: Custom Field regular expression

Posted: 20 Jun 2018, 12:22
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.

Re: Custom Field regular expression

Posted: 21 Jun 2018, 13:57
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.

Re: Custom Field regular expression

Posted: 21 Jun 2018, 14:03
by atrol
This bug has been fixed in 2.8.0 https://www.mantisbt.org/bugs/view.php?id=16133