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

Assignment error when no students are assigned to groups

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.6.3
    • Fix Version/s: None
    • Component/s: Assignment, Groups
    • Labels:
    • Affected Branches:
      MOODLE_26_STABLE

      Description

      Coding error detected, it must be fixed by a programmer: moodle_database::get_in_or_equal() does not accept empty arrays

      More information about this error
      Debug info:
      Error code: codingerror
      Stack trace:

      line 693 of /lib/dml/moodle_database.php: coding_exception thrown
      line 869 of /lib/grouplib.php: call to moodle_database->get_in_or_equal()
      line 1304 of /mod/assign/locallib.php: call to groups_filter_users_by_course_module_visible()
      line 1349 of /mod/assign/locallib.php: call to assign->list_participants()
      line 3899 of /mod/assign/locallib.php: call to assign->count_participants()
      line 528 of /mod/assign/locallib.php: call to assign->view_submission_page()
      line 53 of /mod/assign/view.php: call to assign->view()

      Steps to replicate.
      1. Create course
      2. Create groups
      3. Create groupings
      4. Create Assignment with Common Module Settings

      Group mode: Separate groups
      Grouping: select group
      Available for group members only checked.

      5. Save and return to course.
      6. Click on assignment and receive error.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              whereduck David Richards
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: