Here is what I have so far:
In /lang/strings_english.txt
Code: Select all
$s_reproducibility_enum_string = '5:not set,10:always,30:sometimes,50:random,70:have not tried,90:unable to reproduce,100:N/A';
$MANTIS_ERROR[ERROR_VALIDATE_REPRO] = 'The bug cannot be created because %s';
Code: Select all
define( 'REPRODUCIBILITY_NOTSET', 5 );
define( 'ERROR_VALIDATE_REPRO', 2000 );
Code: Select all
$g_reproducibility_enum_string = '5:not set,10:always,30:sometimes,50:random,70:have not tried,90:unable to duplicate,100:N/A';
$g_default_bug_reproducibility = REPRODUCIBILITY_NOTSET;
Code: Select all
function custom_function_default_issue_create_validate( $p_new_bug ) {
if ( $p_new_bug->reproducibility == NOTSET ) {
error_parameters( 'the reproducibility has not been set' );
trigger_error( ERROR_VALIDATE_REPRO, ERROR );
}
}
Thanks for any help you can give.