Problem with required fields

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
davidp
Posts: 21
Joined: 29 Apr 2011, 08:18

Problem with required fields

Post by davidp »

Hi,

I customized Mantis for my personal use, one of these customizations is that i made the field "steps to reproduce" required following this help http://www.mantisbt.org/forums/viewtopi ... red#p44500

And it works fine, but a problem appeared, when I wanna change the handler here :
Image
I confirm, and then an error message tells that the required field "steps to reproduce" is empty ... but it has nothing to do with the handler change, I don't understand how it could be linked. Everything else seems to work correctly.

Could someone help me ?

Thanks.
davidp
Posts: 21
Joined: 29 Apr 2011, 08:18

Re: Problem with required fields

Post by davidp »

Resolved.

The condition " if( $p_update_extended ) { " was missing before :
if ( is_blank( $this->steps_to_reproduce) ) {
error_parameters( lang_get( 'steps_to_reproduce' ) );
trigger_error( ERROR_EMPTY_FIELD, ERROR );
}
Post Reply