Skip to content
Browse files

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

  • Loading branch information...
1 parent 9da506c commit 6a30d03e5f78648afda8dcdfbff496a420e83117 @mouneyrac mouneyrac committed Jan 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 webservice/rest/locallib.php
View
4 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 6a30d03

Please sign in to comment.
Something went wrong with that request. Please try again.