Setting default version for bug creation

Lee, Jarrad (Outsourcing) ja.lee at
Fri May 25 04:44:29 UTC 2007

Ok scratch that, doesn't seem to be as easy as that...


For some reason though version is now defaulting to the one I want for
one product... maybe I inadvertently set this mysterious default.version



From: developers-owner at
[mailto:developers-owner at] On Behalf Of Lee, Jarrad
Sent: Friday, 25 May 2007 2:35 PM
To: developers at
Subject: Re: Setting default version for bug creation


Well I had a less than overwhelming response to this problem. None the
less I have found a solution without having to modify Bugzilla...


I'm not sure whether this is Bugzilla functionality or not but if you
prefix a product version with a blank space (e.g. ' 4.2.2') the version
will be selected by default when you navigate to the page, it will
appear in the list without the space and in it's correct numeric order
in the list.





From: developers-owner at
[mailto:developers-owner at] On Behalf Of Lee, Jarrad
Sent: Friday, 18 May 2007 11:08 AM
To: developers at
Subject: Setting default version for bug creation




I'm making quite a few visual and UI modifications to a Bugzilla 3.0
installation. Currently I'm looking at making the 'Version' field set
the latest (highest) version to 'selected' by default.


I'm pretty certain what I need to change in create.html.tmpl is here...


<td align="right" valign="top">




      <select name="version" size="5">

        [%- FOREACH v = version %]

          <option value="[% v FILTER html %]"

            [% " selected=\"selected\"" IF v == default.version %]>[% v
FILTER html -%]


        [%- END %]




For example if I have the versions (they show up in this order, with
'Pre 4.1.3' selected by default):







Pre 4.1.3


In this case I would like 4.2.2 to be selected by default.


I have no idea what default.version is or where to set it... Any ideas
would be much appreciated.



Jarrad Lee


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be
copied, disclosed to, retained or used by, any other party. If you are
not an intended recipient then please promptly delete this e-mail and
any attachment and all copies and inform the sender. Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the developers mailing list