Setting default version for bug creation

Lee, Jarrad (Outsourcing) ja.lee at
Fri May 18 01:07:49 UTC 2007



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