Hello,
I am new to Mantis.
First of all, Thank you for everything.
My need is the following: add the button "confirmed" near Close, Move, Delete in edit ticket.
I created a function in html_api.php that I called in html_buttons_view_bug_page and it works.
is that the right way to do it or are there custom ... or override things ... to do that?
Thank you so much
add the button "confirmed" near Close, Move, Delete in edit ticket
Moderators: Developer, Contributor
Re: add the button "confirmed" near Close, Move, Delete in edit ticket
A better solution without changing existing source code would be to write a custom
custom_function_override_print_bug_view_page_custom_buttons
https://www.mantisbt.org/docs/master/en ... ustomfuncs
custom_function_override_print_bug_view_page_custom_buttons
https://www.mantisbt.org/docs/master/en ... ustomfuncs
Re: add the button "confirmed" near Close, Move, Delete in edit ticket
Hello,
Thank you very much for the answer.
I implemented the custom_function_override_print_bug_view_page_custom_buttons function but my text is added instead of being displayed alone.
Move - Delete - Test_Override
function custom_function_override_print_bug_view_page_custom_buttons( $p_bug_id ) {
echo 'Test_Override';
}
Thank's
Thank you very much for the answer.
I implemented the custom_function_override_print_bug_view_page_custom_buttons function but my text is added instead of being displayed alone.
Move - Delete - Test_Override
function custom_function_override_print_bug_view_page_custom_buttons( $p_bug_id ) {
echo 'Test_Override';
}
Thank's
Re: add the button "confirmed" near Close, Move, Delete in edit ticket
Confuses me. Your post is "add the button "confirmed" near Close, Move, Delete in edit ticket." Not sure, now it seems you don't want just to add the button, but you want to remove also existing ones?
Re: add the button "confirmed" near Close, Move, Delete in edit ticket
Yes please.
Yes, I want to remove also existing ones
Yes, I want to remove also existing ones
Re: add the button "confirmed" near Close, Move, Delete in edit ticket
There is no configuration option for it.
You could write a Mantis plugin that uses JavaScript to remove the buttons, or you could change existing source.
You could write a Mantis plugin that uses JavaScript to remove the buttons, or you could change existing source.