]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 364835 - "current bug number should be filled in in "to bugs" input box to simpli...
authorreed%reedloden.com <>
Wed, 27 Dec 2006 09:21:32 +0000 (09:21 +0000)
committerreed%reedloden.com <>
Wed, 27 Dec 2006 09:21:32 +0000 (09:21 +0000)
show_bug.cgi
template/en/default/filterexceptions.pl
template/en/default/global/per-bug-queries.html.tmpl

index 37d31efe09625e8a435636af006107ab34be4bea..bc6faa8a58b85027aaf462babe9efe02f9a76fe8 100755 (executable)
@@ -99,6 +99,9 @@ $vars->{'bugs'} = \@bugs;
 $vars->{'marks'} = \%marks;
 $vars->{'use_keywords'} = 1 if Bugzilla::Keyword::keyword_count();
 
+my @bugids = map {$_->bug_id} @bugs;
+$vars->{'bugids'} = join(", ", @bugids);
+
 # Next bug in list (if there is one)
 my @bug_list;
 if ($cgi->cookie("BUGLIST")) {
index a08233e0cea6ffab0a965ff52e5bb8ac2c877010..7321dc5b9c7a1b5eb0c5d75fa1b3f71d3dd6a0b2 100644 (file)
   'series.frequency * 2',
 ],
 
+'global/per-bug-queries.html.tmpl' => [
+  '" value=\"$bugids\"" IF bugids',
+],
+
 'global/select-menu.html.tmpl' => [
   'options', 
   'size', 
index c3706d6de6b1ce873f37da01186cb61c918841c0..6a63016c0bcab689ea26ad6679c7ba80f3b662a3 100644 (file)
@@ -93,7 +93,8 @@
         </span>
         <span id="lob_direction">to</span>
         [%+ terms.bugs %]
-        <input type="text" name="bug_ids" size="12" maxlength="80">
+        <input type="text" name="bug_ids" size="12" maxlength="80"
+         [%- " value=\"$bugids\"" IF bugids %]>
         <input type="submit" value="Commit" id="commit_list_of_bugs">
       </form>
     </li></ul>