]> git.mjollnir.org Git - moodle.git/commitdiff
webservice MDL-20803 fix REST POST parameters documentation
authorjerome mouneyrac <jerome@moodle.com>
Mon, 14 Dec 2009 07:12:47 +0000 (07:12 +0000)
committerjerome mouneyrac <jerome@moodle.com>
Mon, 14 Dec 2009 07:12:47 +0000 (07:12 +0000)
webservice/wsdocrenderer.php

index 1f56a68089697ab89bf60bba62386ceed88ff54a..c05a175e6867e098fca74a4933b1e764912c232e 100644 (file)
@@ -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;