From 11856629aae4965ff7b7e4438b3446e34840aa89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Fri, 9 Apr 2010 16:23:44 +0200 Subject: [PATCH] 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(-) diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index bfcca10767..3edab563aa 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}; -- 2.47.3