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

Quiz grade items: Set up a grade for each section does not handle descriptions correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.4.2
    • 4.4 regressions, 4.4
    • Quiz

      Hello team.

      The new functionality added in version 4.4:
      *Quiz Improvements in Moodle 4.4 *
      https://www.youtube.com/watch?v=AmM5WvEUNy0

      Failure in a particular scenario.

      When a "Description" question is created within a Heading Section in quiz questions and want to make use of the new functionality "Set up a grade for each section" it generates an incorrect association in the "Description" questions.

      Steps to replicate:

      • Create a new Course
      • In that new Course, create a Quiz
      • In the created Quiz, add sections and questions.
      • You can create more than one section (minimum 1).
      • Each section must have at least 2 questions and one of those questions must be of type "Description" ( ) .
      • Click on "Grade items setup" in the top selector.
      • In the "Grade items setup" view you can see that each section shows all questions except the "Description" questions ( ).
      • Click on "Set up a grade for each section".
      • You can see the "Grade items setup" table where each associated Heading Section cannot be deleted ( ).
      • When you press the "Reset Setup" button you can see the error ( ).

      Remarks:
      The reason for this error is that at the time of calling function:
      `public function update_slot_grade_item`.
      in the file:
      `mod/quiz/quiz/classes/structure.php`

      It is being stored in the table 'prefix_quiz_slots' in the field `quizgradeitemid` of all the questions that compose this Section, even those of type "Description" that are not visible in the interface.

        1. Img1.png
          Img1.png
          180 kB
        2. Img2.png
          Img2.png
          131 kB
        3. Img3.png
          Img3.png
          131 kB
        4. Img4.png
          Img4.png
          145 kB

            timhunt Tim Hunt
            drobayo Dagoberto Robayo
            Hieu Vu Hieu Vu
            Huong Nguyen Huong Nguyen
            CiBoT CiBoT
            Votes:
            3 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 - 31 minutes
                31m

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