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

Post about your customizations to share with others.

Moderators: Contributor, Developer

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

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

Post by urbannet » Jun 27, 2018 8:57 am

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: 7394
Joined: Mar 26, 2008 4:37 pm
Location: Germany

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

Post by atrol » Jun 27, 2018 10:16 am

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: Jun 22, 2018 8:00 am

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

Post by urbannet » Jul 02, 2018 8:38 am

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: 7394
Joined: Mar 26, 2008 4:37 pm
Location: Germany

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

Post by atrol » Jul 02, 2018 8:53 am

urbannet wrote:
Jul 02, 2018 8:38 am
but 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: Jun 22, 2018 8:00 am

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

Post by urbannet » Jul 02, 2018 10:58 am

Yes please.
Yes, I want to remove also existing ones

atrol
Site Admin
Posts: 7394
Joined: Mar 26, 2008 4:37 pm
Location: Germany

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

Post by atrol » Jul 04, 2018 12:44 am

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