From: jerome mouneyrac Date: Mon, 14 Dec 2009 07:12:47 +0000 (+0000) Subject: webservice MDL-20803 fix REST POST parameters documentation X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7ef7363276dd93d9f91438016a52a59a8182e270;p=moodle.git webservice MDL-20803 fix REST POST parameters documentation --- diff --git a/webservice/wsdocrenderer.php b/webservice/wsdocrenderer.php index 1f56a68089..c05a175e68 100644 --- a/webservice/wsdocrenderer.php +++ b/webservice/wsdocrenderer.php @@ -207,8 +207,9 @@ EOF; return $return; } else if ($paramdescription instanceof external_single_structure) { $singlestructuredesc = ""; + $initialparamstring = $paramstring; foreach ($paramdescription->keys as $attributname => $attribut) { - $paramstring = $paramstring.'['.$attributname.']'; + $paramstring = $initialparamstring.'['.$attributname.']'; $singlestructuredesc .= $this->rest_param_description_html($paramdescription->keys[$attributname], $paramstring); } return $singlestructuredesc;