Группа :: Сети/WWW
Пакет: bugzilla
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: bugzilla-usesearchcomponentsenterbug-feat.patch
diff -uNr bugzilla-2.16.8.orig/defparams.pl bugzilla-2.16.8/defparams.pl
--- bugzilla-2.16.8.orig/defparams.pl 2005-02-10 20:31:07 +0300
+++ bugzilla-2.16.8/defparams.pl 2005-02-10 20:36:40 +0300
@@ -614,4 +614,9 @@
"t" ,
'1000');
+
+DefParam("usesearchcomponentsenterbug",
+ "Use form search components in displays bug entry form?",
+ "b",
+ 1);
1;
diff -uNr bugzilla-2.16.8.orig/enter_bug.cgi bugzilla-2.16.8/enter_bug.cgi
--- bugzilla-2.16.8.orig/enter_bug.cgi 2005-02-10 20:31:07 +0300
+++ bugzilla-2.16.8/enter_bug.cgi 2005-02-10 20:44:40 +0300
@@ -261,7 +261,7 @@
}
my @components;
-if($::FORM{'querymatch'}) {
+if(Param('usesearchcomponentsenterbug') && $::FORM{'querymatch'}) {
$vars->{'results'} = "yes";
my $query = "SELECT value,description FROM components WHERE program=".SqlQuote($::FORM{'product'});
my $matchstr = $::FORM{'matchstr'};
diff -uNr bugzilla-2.16.8.orig/template/en/default/bug/create/create.html.tmpl bugzilla-2.16.8/template/en/default/bug/create/create.html.tmpl
--- bugzilla-2.16.8.orig/template/en/default/bug/create/create.html.tmpl 2005-02-10 20:31:07 +0300
+++ bugzilla-2.16.8/template/en/default/bug/create/create.html.tmpl 2005-02-10 20:38:09 +0300
@@ -25,7 +25,7 @@
h2 = "This page lets you enter a new bug into Bugzilla."
%]
-[% IF results %]
+[% IF (!Param('usesearchcomponentsenterbug') || results) %]
<form method="post" action="post_bug.cgi">
[% ELSE %]
<form method="post" action="enter_bug.cgi">
@@ -81,7 +81,7 @@
Component</a>:
</strong>
</td>
-[% UNLESS results %]
+[% UNLESS (!Param('usesearchcomponentsenterbug') || results) %]
<td>
<input type="text" name="matchstr">
<select name="matchtype">