Moodle
  1. Moodle
  2. MDL-36655

Assignment with single student displays a warning on the single grade page.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.3, 2.4
    • Fix Version/s: 2.3.4
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      Hide
      1. Enable debugging output
      2. Create an assignment in a course with only 1 enrolled student.
      3. Log in as a teacher and go to the single grade page for that student (View/grade all submissions -> Click on the grade button for the student)
      4. Verify you to not receive the warning message listed in the description of this issue below the submission status table.
      Show
      Enable debugging output Create an assignment in a course with only 1 enrolled student. Log in as a teacher and go to the single grade page for that student (View/grade all submissions -> Click on the grade button for the student) Verify you to not receive the warning message listed in the description of this issue below the submission status table.
    • Workaround:
      Hide

      Disable debugging. The warning produces no side effects.

      Show
      Disable debugging. The warning produces no side effects.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:
    • Rank:
      46151

      Description

      When grading an assignment with only a single student, a warning is displayed on the single grade page when debugging is enabled.

      Notice: Undefined variable: type in /git/moodle-integration/src/lib/pear/HTML/QuickForm/group.php on line 277

      Thanks to Frédéric Massart for finding this issue and providing the patch on the linked issue.

        Issue Links

          Activity

          Hide
          Damyon Wiese added a comment -

          Confirmed that on 2.3 stable - the assignment is also adding an empty group to the form when there is only one student - but 2.3 does not issue the warning - we should add a fix for this anyway.

          Show
          Damyon Wiese added a comment - Confirmed that on 2.3 stable - the assignment is also adding an empty group to the form when there is only one student - but 2.3 does not issue the warning - we should add a fix for this anyway.
          Hide
          Dan Poltawski added a comment -

          Integrated, thanks Damyon

          Show
          Dan Poltawski added a comment - Integrated, thanks Damyon
          Hide
          Petr Škoda added a comment -

          Works fine, thanks, sorry for stealing...

          Show
          Petr Škoda added a comment - Works fine, thanks, sorry for stealing...
          Hide
          Dan Poltawski added a comment -

          Congratulations! Another bug solved.. only another 7330 to go, thanks for contributing to contributing to 0.8% of all bugs being fixed this week!

          ciao
          Dan

          Show
          Dan Poltawski added a comment - Congratulations! Another bug solved.. only another 7330 to go, thanks for contributing to contributing to 0.8% of all bugs being fixed this week! ciao Dan

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: