From 0225ce6e5b34ce3fc3e874efc3c0f249a5b4a1c2 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Thu, 29 Mar 2018 15:13:33 -0400 Subject: Bug 1450008 - documentation link in API errors is wrong --- Bugzilla/WebService/Server/REST.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/WebService/Server') 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}) { -- cgit v1.2.3-24-g4f1b