]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 558318: "Invalid Parameter for keywords" error thrown when creating a new bug
authorFrédéric Buclin <LpSolit@gmail.com>
Fri, 9 Apr 2010 14:23:44 +0000 (16:23 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Fri, 9 Apr 2010 14:23:44 +0000 (16:23 +0200)
r=timello a=LpSolit

Bugzilla/Bug.pm

index bfcca10767bd36d634f75ebd4970758a4ee5ea05..3edab563aa2f66049a296f449d436e632b68517d 100644 (file)
@@ -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};