-
Bug
-
Resolution: Fixed
-
Major
-
3.8.6, 3.9.3, 3.10, 3.11
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
MDL-70324-master -
Currently, get_all_response_file_areas() function in question/engine/lib.php do not work correctly.
It's using + operator to merge the array, and it seem not correct. Please see below information from php.net
The + operator returns the right-hand array appended to the left-hand array; for keys that exist in both arrays, the elements from the left-hand array will be used, and the matching elements from the right-hand array will be ignored.
$variables = array();
|
foreach (question_bank::get_all_qtypes() as $qtype) {
|
$variables += $qtype->response_file_areas();
|
}
|