diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc
index 3f421fc2..f1713955 100644
--- a/lam/lib/modules.inc
+++ b/lam/lib/modules.inc
@@ -535,8 +535,10 @@ function doUploadPostActions($scope, $data, $ids, $failed) {
* @param boolean $restricted If true then no buttons will be displayed
* @param integer $tabindex Start value of tabulator index for input fields
* @param integer $tabindexLink Start value of tabulator index for links
+* @return array List of input field names and their type (name => type)
*/
function parseHtml($module, $input, $values, $restricted, &$tabindex, &$tabindexLink) {
+ $ret = array();
if (is_array($input)) {
echo "
\n";
for ($i=0; $i\n";
+ // init option fields
if (!is_array($input[$i][$j]['options'])) $input[$i][$j]['options'] = array ( $input[$i][$j]['options'] );
if (isset($input[$i][$j]['options_selected'])) {
if (!is_array($input[$i][$j]['options_selected'])) {
@@ -593,17 +625,11 @@ function parseHtml($module, $input, $values, $restricted, &$tabindex, &$tabindex
else {
$input[$i][$j]['options_selected'] = array();
}
- echo "