]> git.mjollnir.org Git - moodle.git/commit
MDL-12133 - Errors calling parent::validation in a moodle form subclass because the...
authortjhunt <tjhunt>
Tue, 20 Nov 2007 15:08:05 +0000 (15:08 +0000)
committertjhunt <tjhunt>
Tue, 20 Nov 2007 15:08:05 +0000 (15:08 +0000)
commit13ccb7bd589d046c2162a9d9b15720a8b106343b
tree5c0a3dd9fdbcb99549cacbd4f86af854c754b29b
parentea16c547eea0aa7f54714767fd7f596ba5e1ec0a
MDL-12133 - Errors calling parent::validation in a moodle form subclass because the base class method returns true not an empty array. This patch allow subclasses to start their validate method with

$errors = parent::validation($data, $files);

which is what you naturally want to do if you are used to object oriented programming.

Merged from MOODLE_19_STABLE.
lib/formslib.php