Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37512890
en ru br
ALT Linux repositórios
5.0: 3.2.1-alt1
4.1: 2.16.8-alt3
4.0: 2.16.8-alt3
3.0: 2.16.8-alt3

Group :: Rede/WWW
RPM: bugzilla

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: bugzilla-usesearchcomponentsenterbug-feat.patch
Download


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">
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009