1

Is this possible to setup Steps To Reproduce field so it's required?

It's always difficult to get enough info from reporters, so maybe forcing them to fill this field will help us - programmers - a little.

I would like to still be able to update mantis without troubles.

seler
  • 8,803
  • 4
  • 41
  • 54

1 Answers1

2

You are able to achieve this by changing, (in bug_report.php)

$t_bug_data->steps_to_reproduce = gpc_get_string( 'steps_to_reproduce', '' ); 

To

$t_bug_data->steps_to_reproduce = gpc_get_string( 'steps_to_reproduce' ); 

But on the advanced report it doesn't show an * (Asterisk) to indicate that it is mandatory. You have to add the * yourself in the PHP file.

kroonwijk
  • 8,340
  • 3
  • 31
  • 52
  • You will probably need to re-apply the change, but I do not see another solution. Maybe you can script the change so you can easily store and re-apply your changes. – kroonwijk Sep 16 '11 at 14:47
  • remove the second argument (,'') from that string. That is the change. Does it help? – kroonwijk Sep 16 '11 at 15:02
  • Just to complete this, to add the "required" asterisk into the web page via the PHP, add: ```html *``` into the file `bug_report_page.php` so that the line reads: ```html *``` In MantisBT version 1.2.19, this is on line 513. – drewsberry Jan 07 '16 at 15:20