Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-7399

instanceTypeProfiles array used by keys but NOT defined so

XMLWordPrintable

    • 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( ......

       

       

       

       

            pablodp Pablo Pagnone
            ecastro Enrique Castro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.