-
Bug
-
Resolution: Fixed
-
Minor
-
2.2.9, 2.3.6, 2.4.3, 2.5
-
None
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_25_STABLE
-
MDL-39579-master-int -
The magic in $mform->repeat_elements() does not allow for the developer to set a type on an element within a (named?) group.
The following code doesn't work:
$group = array(
|
$mform->createElement('text', 'repeatedgroupel1', 'repeatedgroupel1'),
|
$mform->createElement('text', 'repeatedgroupel2', 'repeatedgroupel2'));
|
$repeat = $mform->createElement('group', 'mygroup', 'mygroup', $group);
|
$this->repeat_elements(array($repeat), 2, array('mygroup[repeatedgroupel1]' => array('type' => PARAM_INT)),
|
'repeteablegroup', 'add', 0);
|
- blocks
-
MDL-39599 Fix setType in course module forms (should fix behat for most modules).
- Closed
- has been marked as being related by
-
MDL-39578 detectMissingSetType does not happen after definition_after_data()
- Closed
- is duplicated by
-
MDL-38709 Add support for element groups in detectMissingSetType()
- Closed
- will be (partly) resolved by
-
MDL-39650 Tricky to set a type on elements within a named group inside repeated elements (backport of MDL-39579)
- Closed