summaryrefslogtreecommitdiffstats
path: root/extensions/BzAPI/lib/Resources
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-08-26 21:10:02 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-08-26 21:10:02 +0200
commitbfc1cfe2b6f723b260d90363b7eccbb8e3297f89 (patch)
tree014ab81a7e5d818263daa9cb9ae5919abbe14c73 /extensions/BzAPI/lib/Resources
parentf95d29501ddc10e788eac9859cf57bdb59ac29d3 (diff)
downloadbugzilla-bfc1cfe2b6f723b260d90363b7eccbb8e3297f89.tar.gz
bugzilla-bfc1cfe2b6f723b260d90363b7eccbb8e3297f89.tar.xz
Bug 1058679: new bug API returning a ref where bzexport expects bug data
Diffstat (limited to 'extensions/BzAPI/lib/Resources')
-rw-r--r--extensions/BzAPI/lib/Resources/Bug.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/BzAPI/lib/Resources/Bug.pm b/extensions/BzAPI/lib/Resources/Bug.pm
index d9a2604a9..77b567421 100644
--- a/extensions/BzAPI/lib/Resources/Bug.pm
+++ b/extensions/BzAPI/lib/Resources/Bug.pm
@@ -668,7 +668,7 @@ sub create_bug_response {
return if !exists $$result->{id};
my $bug_id = $$result->{id};
- $$result = { ref => $rpc->type('string', ref_urlbase() . "/bug/$bug_id") };
+ $$result->{ref} = $rpc->type('string', ref_urlbase() . "/bug/$bug_id");
$response->code(STATUS_CREATED);
}