summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-29 21:13:33 +0200
committerGitHub <noreply@github.com>2018-03-29 21:13:33 +0200
commit0225ce6e5b34ce3fc3e874efc3c0f249a5b4a1c2 (patch)
tree2f58a8ea9a9261328bd6bfda39f764d54ee18202 /Bugzilla/WebService
parent3890e90e2fa0efd0e31c519814c7169f34b52a4e (diff)
downloadbugzilla-0225ce6e5b34ce3fc3e874efc3c0f249a5b4a1c2.tar.gz
bugzilla-0225ce6e5b34ce3fc3e874efc3c0f249a5b4a1c2.tar.xz
Bug 1450008 - documentation link in API errors is wrong
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Server/REST.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm
index 6fb86fdd4..b8884b753 100644
--- a/Bugzilla/WebService/Server/REST.pm
+++ b/Bugzilla/WebService/Server/REST.pm
@@ -132,7 +132,8 @@ sub response {
if (exists $json_data->{error}) {
$result = $json_data->{error};
$result->{error} = $self->type('boolean', 1);
- $result->{documentation} = REST_DOC;
+
+ $result->{documentation} = Bugzilla->params->{docs_urlbase} . "api/";
delete $result->{'name'}; # Remove JSONRPCError
}
elsif (exists $json_data->{result}) {