Add version options
Posted: 29 May 2020, 11:19
Good afternoon, I just recently started using mantis and therefore I am not good at it. I’ll go straight to the point. I need the administrator to select the target version in viewing the task, after which it should be displayed in the line "target version". I wrote a function for adding a button and called it in html.api. I now need, by analogy with the button "Translate to:" and "Assign: ", add the version selection interface to it. Thanks in advance.
Add button function:
Function call code:
Add button function:
Code: Select all
function custom_function_default_print_bug_view_page_custom_buttons( BugData $p_bug_id ) {
if( access_has_bug_level( config_get( 'roadmap_update_threshold' ), $p_bug_id ) ) {
html_button( 'bug_update.php', lang_get( 'target_version' ), array( 'bug_id' => $p_bug_id ) );
}
}
Code: Select all
echo '<div class="pull-left padding-right-8">';
custom_function_default_print_bug_view_page_custom_buttons( $t_bug );
echo '</div>';