Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-53883

JavaScript error in the console when accessing Question Bank > Import

    XMLWordPrintable

Details

    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • MDL-53883_master
    • Hide

      For this test ensure you have firebug (or the equivalent) open to view any JS errors that may occur

      On Stable
      1. Visit a course.
      2. Visit the page 'Course administration' > 'Question bank' > 'Import'.
      3. Make note of the ID of the div that contains the radio buttons (should be 'fgroup_id_formatchoices').
      On Integration
      1. Visit a course.
      2. Visit the page 'Course administration' > 'Question bank' > 'Import'.
      3. Ensure there are no JS errors.
      4. Check that the ID for the group of radio buttons is the same as stable.
      On Stable
      1. Visit a course.
      2. Visit the page 'Course administration' > 'Question bank' > 'Export''.
      3. Make note of the ID of the div that contains the radio buttons (should be 'fgroup_id_formatchoices').
      On Integration
      1. Visit the page 'Course administration' > 'Question bank' > 'Export'.
      2. Ensure there are no JS errors.
      3. Check that the ID for the group of radio buttons is the same as stable.
      4. Browse around Moodle and view forms that contain groups of elements.
      5. Confirm everything is working as expected.
      Show
      For this test ensure you have firebug (or the equivalent) open to view any JS errors that may occur On Stable Visit a course. Visit the page 'Course administration' > 'Question bank' > 'Import'. Make note of the ID of the div that contains the radio buttons (should be 'fgroup_id_formatchoices'). On Integration Visit a course. Visit the page 'Course administration' > 'Question bank' > 'Import'. Ensure there are no JS errors. Check that the ID for the group of radio buttons is the same as stable. On Stable Visit a course. Visit the page 'Course administration' > 'Question bank' > 'Export''. Make note of the ID of the div that contains the radio buttons (should be 'fgroup_id_formatchoices'). On Integration Visit the page 'Course administration' > 'Question bank' > 'Export'. Ensure there are no JS errors. Check that the ID for the group of radio buttons is the same as stable. Browse around Moodle and view forms that contain groups of elements. Confirm everything is working as expected.

    Description

      Whilst testing https://tracker.moodle.org/browse/MDL-53799 I noticed a related error in the console when click the menu option Administration > Course Administration > Question Bank > Import.

      I am using Firefox 41.0.2 and this is the error reported in Firebug:

      TypeError: document.getElementById(...) is null
      http://localhost/test/question/import.php?courseid=2
      Line 233

      David has advised that the problem does not exist in 3.0, so I will mark this as affecting version 3.1.

      Attachments

        Issue Links

          Activity

            People

              markn Mark Nelson
              craig@moodle.com Craig R Morton
              Tim Hunt Tim Hunt
              David Monllaó David Monllaó
              Adrian Greeve Adrian Greeve
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                23/May/16