Page 1 of 1

add the button "confirmed" near Close, Move, Delete in edit ticket

Posted: 27 Jun 2018, 13:57
by urbannet
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

Re: add the button "confirmed" near Close, Move, Delete in edit ticket

Posted: 27 Jun 2018, 15:16
by atrol
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

Re: add the button "confirmed" near Close, Move, Delete in edit ticket

Posted: 02 Jul 2018, 13:38
by urbannet
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

Re: add the button "confirmed" near Close, Move, Delete in edit ticket

Posted: 02 Jul 2018, 13:53
by atrol
urbannet wrote: 02 Jul 2018, 13:38but my text is added instead of being displayed alone.
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

Posted: 02 Jul 2018, 15:58
by urbannet
Yes please.
Yes, I want to remove also existing ones

Re: add the button "confirmed" near Close, Move, Delete in edit ticket

Posted: 04 Jul 2018, 05:44
by atrol
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.