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

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
urbannet
Posts: 6
Joined: 22 Jun 2018, 13:00

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

Post 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
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post 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
Please use Search before posting and read the Manual
urbannet
Posts: 6
Joined: 22 Jun 2018, 13:00

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

Post 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
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post 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?
Please use Search before posting and read the Manual
urbannet
Posts: 6
Joined: 22 Jun 2018, 13:00

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

Post by urbannet »

Yes please.
Yes, I want to remove also existing ones
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post 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.
Please use Search before posting and read the Manual
Post Reply