Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.8.6, 3.9.3, 3.10, 3.11
-
Component/s: Questions
-
Testing Instructions:
-
Affected Branches:MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
Fixed Branches:MOODLE_310_STABLE, MOODLE_39_STABLE
-
Pull from Repository:
-
Pull 3.8 Branch:
MDL-70324-3.8 -
Pull 3.9 Branch:
MDL-70324-3.9 -
Pull 3.10 Branch:
MDL-70324-3.10 -
Pull 3.11 Branch:
MDL-70324-3.11 -
Pull Master Branch:
MDL-70324-master -
Pull Master Diff URL:
Description
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();
|
}
|