From 4820bfd3889dbfcd5b3e6d29480fe57cc039795c Mon Sep 17 00:00:00 2001 From: vfilippov Date: Fri, 10 Dec 2010 00:07:05 +0000 Subject: [PATCH] Bug 68921 - support bug_id=a,b,c,d without bug_id_type=anyexact git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1161 6955db30-a419-402b-8a0d-67ecbb4d7f56 --- Bugzilla/Search.pm | 5 +++++ template/en/default/request/queue.html.tmpl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 4006cc308..e60597157 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -430,6 +430,11 @@ sub init { $type = 'matches'; } + elsif ($field eq 'bug_id') + { + $type = 'anyexact'; + $values = [ map { /(\d+)/gso } $params->param($field) ]; + } else { $type = 'anyexact'; diff --git a/template/en/default/request/queue.html.tmpl b/template/en/default/request/queue.html.tmpl index 471f9b916..bb9a3252d 100644 --- a/template/en/default/request/queue.html.tmpl +++ b/template/en/default/request/queue.html.tmpl @@ -242,7 +242,7 @@ to some group are shown by default. [% BLOCK display_buglist %] [% NEXT UNLESS buglist.keys.size %] - (view as [%+ terms.bug %] list) [% END %]