From 11856629aae4965ff7b7e4438b3446e34840aa89 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Fri, 9 Apr 2010 16:23:44 +0200 Subject: Bug 558318: "Invalid Parameter for keywords" error thrown when creating a new bug r=timello a=LpSolit --- Bugzilla/Bug.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index bfcca1076..3edab563a 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -478,15 +478,11 @@ sub create { my $groups = delete $params->{groups}; my $depends_on = delete $params->{dependson}; my $blocked = delete $params->{blocked}; + my $keywords = delete $params->{keywords}; my ($comment, $privacy) = ($params->{comment}, $params->{commentprivacy}); delete $params->{comment}; delete $params->{commentprivacy}; - # Set up the keyword cache for bug creation. - my $keywords = $params->{keywords}; - $params->{keywords} = join(', ', sort {lc($a) cmp lc($b)} - map($_->name, @$keywords)); - # We don't want the bug to appear in the system until it's correctly # protected by groups. my $timestamp = delete $params->{creation_ts}; -- cgit v1.2.3-24-g4f1b