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

Undefined array key warning when reverting grade overrides

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-83263-403
    • MDL-83263-404
    • MDL-83263-main
    • Hide
      1. Login as admin.
      2. In Site administration > Development > Debugging set:
        • Debug messages: DEVELOPER
        • Display debug messages: Yes
      3. Create a course and enrol at least one student.
      4. Create at least one gradable activity in the course (e.g. Assignment)
      5. Go to the Grader report in the course.
      6. Enable edit mode, then use the option in the contextual menu within the table cell to navigate to the Edit Grade page for a selected student and activity.
      7. On the Edit Grade page, check the 'Override' option, enter a Final Grade, and provide feedback. Then, save the changes.
      8. Again, go back to the Edit grade page, for the same student and activity.
      9. Uncheck the 'Overridden' setting and notice that the feedback text area is now disabled.
      10. Save changes
        • Verify that the grade and feedback override have been successfully reverted, ensuring there are no errors or warnings.
      Show
      Login as admin. In Site administration > Development > Debugging set: Debug messages: DEVELOPER Display debug messages: Yes Create a course and enrol at least one student. Create at least one gradable activity in the course (e.g. Assignment) Go to the Grader report in the course. Enable edit mode, then use the option in the contextual menu within the table cell to navigate to the Edit Grade page for a selected student and activity. On the Edit Grade page, check the 'Override' option, enter a Final Grade, and provide feedback. Then, save the changes. Again, go back to the Edit grade page, for the same student and activity. Uncheck the 'Overridden' setting and notice that the feedback text area is now disabled. Save changes Verify that the grade and feedback override have been successfully reverted, ensuring there are no errors or warnings.
    • Team Alpha - Sprint 3 I3-2024

      An issue was identified in  MDLQA-18959 where an "undefined array key" warning appears when attempting to revert grade overrides in gradebook. This seems to occur under specific conditions, depending on the error reporting settings.

      Steps to reproduce:

      1. Login as admin.
      2. In Site administration > Development > Debugging set:
        • Debug messages: NORMAL
        • Display debug messages: Yes
      3. Create a course and enrol at least one student.
      4. Create at least one gradable activity in the course (e.g. Assignment)
      5. Go to the Grader report in the course.
      6. Enable edit mode and add a grade for the student for the activity.
      7. Now, go to the Edit grade page by clicking on the 'Edit grade' option from the contextual menu next to the grade in the report.
      8. In the Edit grade page, uncheck the 'Overridden' setting and notice that the feedback text area is now disabled.
      9. Save changes
        • expected: the changes are saved and the grade overridde has been reverted.
        • actual: an error is shown: Undefined array key "text" in /opt/app/grade/edit/tree/grade.php on line 171

       

            Geshoski Mihail Geshoski
            Geshoski Mihail Geshoski
            Huong Nguyen Huong Nguyen
            Jun Pataleta Jun Pataleta
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 47 minutes
                1h 47m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.