summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Bug.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-11-18 20:48:05 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-11-18 20:48:05 +0100
commita1ca30a6ae868e80d8af50f94638733b6b822958 (patch)
tree1207aa83917706c2df7ae1d4a4893ea0f0df345e /Bugzilla/WebService/Bug.pm
parent3e5fc54202f854e76b139ec71fd78e91029dc7d2 (diff)
downloadbugzilla-a1ca30a6ae868e80d8af50f94638733b6b822958.tar.gz
bugzilla-a1ca30a6ae868e80d8af50f94638733b6b822958.tar.xz
Bug 936241 - Bug.create doesn't allow tracking flags to be set, but Bug.update does
r=glob
Diffstat (limited to 'Bugzilla/WebService/Bug.pm')
-rw-r--r--Bugzilla/WebService/Bug.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index aa5fd49c4..707e0d42d 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -694,6 +694,12 @@ sub create {
}
Bugzilla->login(LOGIN_REQUIRED);
+
+ # Some fields cannot be sent to Bugzilla::Bug->create
+ foreach my $key (qw(login password token)) {
+ delete $params->{$key};
+ }
+
$params = Bugzilla::Bug::map_fields($params);
my $bug = Bugzilla::Bug->create($params);
Bugzilla::BugMail::Send($bug->bug_id, { changer => $bug->reporter });