Setting default version for bug creation

Lee, Jarrad (Outsourcing) ja.lee at logicacmg.com
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
somehow...?

 

________________________________

From: developers-owner at bugzilla.org
[mailto:developers-owner at bugzilla.org] On Behalf Of Lee, Jarrad
(Outsourcing)
Sent: Friday, 25 May 2007 2:35 PM
To: developers at bugzilla.org
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.

 

Jarrad

 

________________________________

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

 

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/20070525/f137489a/attachment.html>


More information about the developers mailing list