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

JavaScript error in mod_assign when no enrolments exist in course

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.3.10, 2.4.7, 2.5.3, 2.6
    • Fix Version/s: None
    • Component/s: Assignment

      Description

      The following JavaScript error occurs when no users are listed on the mod_assign view all submissions page:
      Uncaught TypeError: Cannot call method 'on' of null

      This occurs as the batch operations form is missing. A check needs to be added to ensure this form exists before it is accessed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              luketucker Luke Tucker
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: