Add version options

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
zhd_dm
Posts: 11
Joined: 22 May 2020, 13:21

Add version options

Post by zhd_dm »

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:

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 ) );
	} 
}
Function call code:

Code: Select all

echo '<div class="pull-left padding-right-8">';
custom_function_default_print_bug_view_page_custom_buttons( $t_bug );
echo '</div>';
Post Reply