-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
3.1.11, 3.5
-
2017101013
-
MOODLE_31_STABLE, MOODLE_35_STABLE
instanceTypeProfiles array used in mod_form.php is constructed as a NON-associative array, but keys are important an used elsewhere
$jsvars['instanceTypeProfiles'] = bigbluebuttonbn_get_instance_type_profiles()
The function bigbluebuttonbn_get_instance_type_profiles() add entries with id set to defined constants BIGBLUEBUTTONBN_TYPE_ROOM_ONLY / BIGBLUEBUTTONBN_TYPE_ALL / BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY
The array is constructed with [], so keys as numbers that happen to be equal to constants if in the same order. The array keys ARE used in javascrip module.
So it's safer to conctruct the array making explicit the key
array( BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY => array( ......