mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
Merge branch 'wip-mdl-30560' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
5ac06899c7
@ -1014,7 +1014,12 @@ abstract class moodleform {
|
||||
$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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user