Cannot make Custom Field required

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
modest
Posts: 46
Joined: 11 Apr 2011, 18:27

Cannot make Custom Field required

Post by modest »

Using Mantis 1.1.8. I added a new custom field of type string called "MyValue". I checked on "Required on Report" and then clicked on "Update Custom Field Button". After that I assigned the the custom field to one of the projects. Now when I tried to report an issue to that project, Mantis still allowed me to successfully submit an issue without having to fill anything in the "MyValue" custom field. Is that an expected behaviour in Manits?

The only way I could force the user to fill that field is to specify the "Min. Length" parameter for that field. What am I missing?
modest
Posts: 46
Joined: 11 Apr 2011, 18:27

Re: Cannot make Custom Field required

Post by modest »

OK, I am pretty sure that this might be a bug as the only thing that happens upon checking "Required on Report" for a custom field is that red asterisk (*) is displayed next to the field and there is no checking whatsoever to make sure that user has filled some value in it.

Has anyone experienced the same issue on Mantis 1.1.8?
modest
Posts: 46
Joined: 11 Apr 2011, 18:27

Re: Cannot make Custom Field required

Post by modest »

Alright. I really need some help here as I think this is a bug in Mantis 1.1.8. Unfortunately, I cannot upgrade my Mantis installation and I need to fix it in the 1.1.8 code.

I have been able to reproduce this on a fresh 1.1.8 install.
modest
Posts: 46
Joined: 11 Apr 2011, 18:27

Re: Cannot make Custom Field required

Post by modest »

Here is the answer to the question.
http://www.mantisbt.org/bugs/view.php?id=10670

Link found by atrol.
Post Reply