Page 1 of 1

Problem with required fields

Posted: 17 May 2011, 13:10
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.

Re: Problem with required fields

Posted: 19 May 2011, 12:09
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 );
}