-
Bug
-
Resolution: Fixed
-
Minor
-
3.0.4, 3.1, 3.2
-
MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_30_STABLE, MOODLE_31_STABLE
-
MDL-56250-32-formvalidation -
-
Easy
-
In validate_defined_fields() it uses
static $validated = null; // one validation is enough
However, we can have more than one form being validated, I believe this $validated should me an instance variable, not static.
Please see my solution for a phpunit test showing the problem.