From 7ef7363276dd93d9f91438016a52a59a8182e270 Mon Sep 17 00:00:00 2001 From: jerome mouneyrac Date: Mon, 14 Dec 2009 07:12:47 +0000 Subject: [PATCH] webservice MDL-20803 fix REST POST parameters documentation --- webservice/wsdocrenderer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5