Skip to content

Commit

Permalink
webservice MDL-20803 fix REST POST parameters documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mouneyrac committed Dec 14, 2009
1 parent 886e3bf commit 7ef7363
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webservice/wsdocrenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ public function rest_param_description_html($paramdescription, $paramstring) {
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;
Expand Down

0 comments on commit 7ef7363

Please sign in to comment.