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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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:

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              damyon 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 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
              poltawski Dan Poltawski added a comment -

              Integrated, thanks Damyon

              Show
              poltawski Dan Poltawski added a comment - Integrated, thanks Damyon
              Hide
              skodak Petr Skoda added a comment -

              Works fine, thanks, sorry for stealing...

              Show
              skodak Petr Skoda added a comment - Works fine, thanks, sorry for stealing...
              Hide
              poltawski 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
              poltawski 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:
                    Fix Release Date:
                    14/Jan/13