RSS

(root)/bmo/3.0 : 4078 : Bugzilla/Search.pm

To get this branch, use:
bzr branch /bmo/3.0

« back to all changes in this revision

Viewing changes to Bugzilla/Search.pm

mkanat%kerio.com
2006-03-09 00:08:57
Revision ID: cvs-1:mkanatkerio.com-20060309080857-p67gdrkiek5xlx8l
Bug 328638: Remove @::legal_keywords and %::keywordsbyname
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave

Show diffs side-by-side

added added

removed removed

42
42
use Bugzilla::User;
43
43
use Bugzilla::Field;
44
44
use Bugzilla::Bug;
 
45
use Bugzilla::Keyword;
45
46
 
46
47
use Date::Format;
47
48
use Date::Parse;
933
934
                 if ($value eq '') {
934
935
                     next;
935
936
                 }
936
 
                 my $id = &::GetKeywordIdFromName($value);
937
 
                 if ($id) {
938
 
                     push(@list, "$table.keywordid = $id");
 
937
                 my $keyword = new Bugzilla::Keyword({name => $value});
 
938
                 if ($keyword) {
 
939
                     push(@list, "$table.keywordid = " . $keyword->id);
939
940
                 }
940
941
                 else {
941
942
                     ThrowUserError("unknown_keyword",

Loggerhead 1.18.1 is a web-based interface for Bazaar branches