Skip to content
Browse files

Merge branch 'wip-mdl-30560-m21' of git://github.com/rajeshtaneja/moo…

…dle into MOODLE_21_STABLE
  • Loading branch information...
2 parents 6298e8d + e9ccaa1 commit 2874fc880f1c8153b3e0cca6813aa1c2172ade54 @nebgor nebgor committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/formslib.php
View
7 lib/formslib.php
@@ -996,7 +996,12 @@ function repeat_elements($elementobjs, $repeats, $options, $repeathiddenname,
$params = array_merge(array($realelementname), $params);
call_user_func_array(array(&$mform, 'addRule'), $params);
break;
-
+ case 'type' :
+ //Type should be set only once
+ if (!isset($mform->_types[$elementname])) {
+ $mform->setType($elementname, $params);
+ }
+ break;
}
}
}

0 comments on commit 2874fc8

Please sign in to comment.
Something went wrong with that request. Please try again.