Commit 7ef73632 authored by jerome mouneyrac's avatar jerome mouneyrac
Browse files

webservice MDL-20803 fix REST POST parameters documentation

parent 886e3bfb
...@@ -207,8 +207,9 @@ EOF; ...@@ -207,8 +207,9 @@ EOF;
return $return; return $return;
} else if ($paramdescription instanceof external_single_structure) { } else if ($paramdescription instanceof external_single_structure) {
$singlestructuredesc = ""; $singlestructuredesc = "";
$initialparamstring = $paramstring;
foreach ($paramdescription->keys as $attributname => $attribut) { foreach ($paramdescription->keys as $attributname => $attribut) {
$paramstring = $paramstring.'['.$attributname.']'; $paramstring = $initialparamstring.'['.$attributname.']';
$singlestructuredesc .= $this->rest_param_description_html($paramdescription->keys[$attributname], $paramstring); $singlestructuredesc .= $this->rest_param_description_html($paramdescription->keys[$attributname], $paramstring);
} }
return $singlestructuredesc; return $singlestructuredesc;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment