]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 959732: The guided bug entry form lists components disabled for new bug reports
authorGavinS <bugzilla@chimpychompy.org>
Sat, 25 Jan 2014 14:37:16 +0000 (15:37 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sat, 25 Jan 2014 14:37:16 +0000 (15:37 +0100)
r=LpSolit a=justdave

template/en/default/bug/create/create-guided.html.tmpl

index 68bb95b3d69c623e92342c9c64488e4f01fcf2c8..e7de8479912d27577eed36cef7b10548bfeea951 100644 (file)
@@ -39,6 +39,7 @@
 <script type="text/javascript">
 var descriptions = [
 [% FOREACH c = product.components %]
+  [% NEXT IF NOT c.is_active %]
   '[% c.description FILTER js %]',
 [% END %]
 ];
@@ -166,6 +167,7 @@ function PutDescription() {
                 [% default.component_ = "General" %]
               [% END %]
               [% FOREACH c = product.components %]
+                [% NEXT IF NOT c.is_active %]
                 <option value="[% c.name FILTER html %]"
                   [% " selected=\"selected\"" IF c.name == default.component_ %]>
                   [% c.name FILTER html %]