From: Frédéric Buclin Date: Fri, 9 Apr 2010 14:23:44 +0000 (+0200) Subject: Bug 558318: "Invalid Parameter for keywords" error thrown when creating a new bug X-Git-Tag: bugzilla-3.7.1~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11856629aae4965ff7b7e4438b3446e34840aa89;p=thirdparty%2Fbugzilla.git Bug 558318: "Invalid Parameter for keywords" error thrown when creating a new bug r=timello a=LpSolit --- 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};