summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xshow_bug.cgi3
-rw-r--r--template/en/default/filterexceptions.pl4
-rw-r--r--template/en/default/global/per-bug-queries.html.tmpl3
3 files changed, 9 insertions, 1 deletions
diff --git a/show_bug.cgi b/show_bug.cgi
index 37d31efe0..bc6faa8a5 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -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")) {
diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl
index a08233e0c..7321dc5b9 100644
--- a/template/en/default/filterexceptions.pl
+++ b/template/en/default/filterexceptions.pl
@@ -247,6 +247,10 @@
'series.frequency * 2',
],
+'global/per-bug-queries.html.tmpl' => [
+ '" value=\"$bugids\"" IF bugids',
+],
+
'global/select-menu.html.tmpl' => [
'options',
'size',
diff --git a/template/en/default/global/per-bug-queries.html.tmpl b/template/en/default/global/per-bug-queries.html.tmpl
index c3706d6de..6a63016c0 100644
--- a/template/en/default/global/per-bug-queries.html.tmpl
+++ b/template/en/default/global/per-bug-queries.html.tmpl
@@ -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>