-
Bug
-
Resolution: Fixed
-
Minor
-
3.1
-
None
-
MOODLE_31_STABLE
-
MOODLE_30_STABLE, MOODLE_31_STABLE
splitting mform element names to process form save and form search, the same regex is used twice.
1) they are duplicate code.
2) they are not testable by phpunit (only testable via web)
3) so it sounds natural to create a new helper conversion function, that receives the data and returns the processed information.
4) later the helper function will be 100% testable.