Permalink
Browse files

MDL-37355 Fix the REST server that didn't send back the cleaned values

  • Loading branch information...
1 parent 10ad21d commit 7441838054ed9ffec99974d79f26f02cddaf4e10 @mouneyrac mouneyrac committed Jan 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 webservice/rest/locallib.php
@@ -120,7 +120,7 @@ protected function send_response() {
} else {
$response = '<?xml version="1.0" encoding="UTF-8" ?>'."\n";
$response .= '<RESPONSE>'."\n";
- $response .= self::xmlize_result($this->returns, $this->function->returns_desc);
+ $response .= self::xmlize_result($validatedvalues, $this->function->returns_desc);
$response .= '</RESPONSE>'."\n";
}
}
@@ -248,4 +248,4 @@ class webservice_rest_test_client implements webservice_test_client_interface {
public function simpletest($serverurl, $function, $params) {
return download_file_content($serverurl.'&wsfunction='.$function, null, $params);
}
-}
+}

0 comments on commit 7441838

Please sign in to comment.