-
Bug
-
Resolution: Fixed
-
Minor
-
2.4
-
MOODLE_24_STABLE
-
MOODLE_31_STABLE, MOODLE_32_STABLE
-
MDL-40132_31 -
Easiest way to reproduce this bug is adding this code to any moodle form:
$mform->addElement('text','name1','3',array('size'=>3));
|
$mform->addElement('hidden', 'name2', '5');
|
$mform->addRule(array('name1', 'name2'),'You can\'t delete blanks','compare','>=','client',true);//this line results in error in getValidationScript
|
Last line in Moodle 2.4 gives you
"Fatal error: Call to a member function getType() on a non-object in Z:\home\moodle\www\lib\formslib.php on line 1818"
|
I don't have a Moodle 2.5 instance where I could run code for now, but I doubt this was fixed in formslib
- is a clone of
-
MDL-17111 Using compare rule results in fatal error in getValidationScript function
- Closed