How can I access product name via bug id in template

Tosh, Michael J michael.j.tosh at
Wed Apr 16 12:12:42 UTC 2008

Quoting alx:
> list/list.html.tmpl was just an example.
> I'd like to use the 'links' hook in bug/process/results.html.tmpl to
> add a link to add an other bug for the last product, so that the user
> isn't forced to go over 'choose product' again. The browsers back
> button isn't the solution too, because the old form data is still
> filled in.
> So, I can use 'id' but not via the bug object.
> In process_bug.cgi it seems, that just the id, type and recipients are
> submittet to the template.

You will need to create a bug object and pull its product to pass to the
form in process_bug.cgi.  In Bugzilla 3.1.3, you won't need to create a
bug_id to get the product name, but you will still need to modify
process_bug.cgi to send that information to the template.

You may want to include the entire bug object in $vars instead of just
the piece you need (product) so that you can do stuff like this later
with other information without more changes.

dev-apps-bugzilla mailing list
dev-apps-bugzilla at

More information about the developers mailing list