From a1ca30a6ae868e80d8af50f94638733b6b822958 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Mon, 18 Nov 2013 14:48:05 -0500 Subject: Bug 936241 - Bug.create doesn't allow tracking flags to be set, but Bug.update does r=glob --- Bugzilla/WebService/Bug.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Bugzilla/WebService') 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 }); -- cgit v1.2.3-24-g4f1b