Search code examples
mantis

how to set Steps To Reproduce field required in MANTIS


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.


Solution

  • 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.