Setting default version for bug creation

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


Hi,

 

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">

      <strong>Version:</strong>

    </td>

    <td>

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

        [%- FOREACH v = version %]

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

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

          </option>

        [%- END %]

      </select>

    </td>

 

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

 

4.1.3

4.2.0

4.2.1

4.2.2

N/A

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.

 

Cheers,

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: <http://lists.bugzilla.org/pipermail/developers/attachments/20070518/a934e929/attachment.html>


More information about the developers mailing list