Custom buttons on the bug view page

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
lig
Posts: 2
Joined: 27 Apr 2006, 14:26
Contact:

Custom buttons on the bug view page

Post by lig »

version 1.0.2

i'm trying to add quick button that will set status "resolved" to the bug.

i've noticed that i can use "custom_function_override_print_bug_view_page_custom_buttons" fuction with "html_button" inside.

Code: Select all

html_button('bug_change_status_page.php', lang_get('resolve_bug'), array('new_status'=>'80','bug_id'=>"$f_bug_id"));
it is not working: "APPLICATION ERROR #1100" (0 bugs found)

i've tryied $c_bug_id, $f_bug_id, "$c_bug_id" instead of "$f_bug_id"

and nothing is works:(

help please!
atomoid
Posts: 108
Joined: 18 Aug 2005, 00:46
Location: santa cruz, ca

Post by atomoid »

You would rather not use the "Change status to" button?

You might find it much easier to set the default the value in the 'Change Status' popup list to be "Resolved" by merely setting up the manage configuration > workflow transitions: workflow 'default value' settings to be 'Resolved' wherever it makes sense.

ive done it this way so that the value is always the next logical step in the bugflow (and so i didnt have to go in and figure out how to add a new button, so as for that your on your own). i dont know why it Mantis isnt set up that way by defualt...
lig
Posts: 2
Joined: 27 Apr 2006, 14:26
Contact:

Post by lig »

atomoid wrote: ive done it this way so that the value is always the next logical step in the bugflow
next for this status. but not for all statuses.

when it is resolved, will it be changed to the "close" or "reopen"?

i want to make some dynamicaly shown buttons that will represent our own typicaly workflow stages...

and i think buttons is the easiest way to remind end user about this stages
atomoid
Posts: 108
Joined: 18 Aug 2005, 00:46
Location: santa cruz, ca

Post by atomoid »

i set it up so that when the bug is 'resolved' the popup defaults to 'closed'. then when its 'closed' it defaults to 'feedback' (just like 'reopen' button does).

To add in dynamically shown buttons, my first approach would be to try to copy/paste the existing button stuff and custom tweak it to make it work.

However, im somewhat of a noob with all this stuff so im drawing blanks on how to approach this one. But hopefully someone else is more knowledgeable and can chime in.
Post Reply