]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 384604: make guided form default to General component. Patch by gerv; r=justdave.
authorgerv%gerv.net <>
Fri, 14 Dec 2007 22:57:49 +0000 (22:57 +0000)
committergerv%gerv.net <>
Fri, 14 Dec 2007 22:57:49 +0000 (22:57 +0000)
template/en/default/bug/create/create-guided.html.tmpl

index 70165898223334018adfb8885cb41869ed92ecde..588a1043d89781e6fa27c919ba438bb930a92de5 100644 (file)
@@ -209,6 +209,11 @@ function PutDescription() {
           <td valign="top">
             <select name="component" id="component"
                     size="5" onchange="PutDescription()">
+              [% IF NOT default.component_ %]
+                [%# Various b.m.o. products have a "General" component,
+                    which is a useful default. %]
+                [% default.component_ = "General" %]
+              [% END %]
               [% FOREACH c = product.components %]
                 <option value="[% c.name FILTER html %]"
                   [% " selected=\"selected\"" IF c.name == default.component_ %]>