summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-27 23:13:38 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-27 23:13:38 +0100
commit9cfe048d1298e7be8db9b5c2a88abaae114b23a3 (patch)
tree9c2e3c4cd8db31435d53f14e90a9057874192f5d /Bugzilla/Search
parentf573509ba734f29863500dc1c014fd43990e6291 (diff)
downloadbugzilla-9cfe048d1298e7be8db9b5c2a88abaae114b23a3.tar.gz
bugzilla-9cfe048d1298e7be8db9b5c2a88abaae114b23a3.tar.xz
Bug 615574: Make every search done by buglist.cgi create a list_id, so that
even Saved Searches get "last list" support. r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Search')
-rw-r--r--Bugzilla/Search/Recent.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla/Search/Recent.pm b/Bugzilla/Search/Recent.pm
index d7d595ecc..89d9cf6ff 100644
--- a/Bugzilla/Search/Recent.pm
+++ b/Bugzilla/Search/Recent.pm
@@ -90,6 +90,15 @@ sub check {
return $search;
}
+sub check_quietly {
+ my $class = shift;
+ my $error_mode = Bugzilla->error_mode;
+ Bugzilla->error_mode(ERROR_MODE_DIE);
+ my $search = eval { $class->check(@_) };
+ Bugzilla->error_mode($error_mode);
+ return $search;
+}
+
sub new_from_cookie {
my ($invocant, $bug_ids) = @_;
my $class = ref($invocant) || $invocant;