From a2eca825a00b33912ec60f797d1112115772ec30 Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Thu, 9 Mar 2006 08:08:57 +0000 Subject: Bug 328638: Remove @::legal_keywords and %::keywordsbyname Patch By Max Kanat-Alexander r=LpSolit, a=justdave --- Bugzilla/Search.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Bugzilla/Search.pm') diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 0e1f7057d..181f49b19 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -42,6 +42,7 @@ use Bugzilla::Group; use Bugzilla::User; use Bugzilla::Field; use Bugzilla::Bug; +use Bugzilla::Keyword; use Date::Format; use Date::Parse; @@ -933,9 +934,9 @@ sub init { if ($value eq '') { next; } - my $id = &::GetKeywordIdFromName($value); - if ($id) { - push(@list, "$table.keywordid = $id"); + my $keyword = new Bugzilla::Keyword({name => $value}); + if ($keyword) { + push(@list, "$table.keywordid = " . $keyword->id); } else { ThrowUserError("unknown_keyword", -- cgit v1.2.3-24-g4f1b