Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.0.4, 3.1, 3.2
-
Component/s: Forms Library
-
Labels:
-
Testing Instructions:
-
Workaround:
-
Difficulty:Easy
-
Affected Branches:MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
-
Fixed Branches:MOODLE_30_STABLE, MOODLE_31_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-56250-32-formvalidation
Description
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.