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

Forum "ID Number" field overridden when a teacher puts a rating on a forum post

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE

      Good day team,

      This bug seems to be related to MDL-24414, but back in the day, the issue was not replicated.

      The problem is that when you create a forum activity, with post ratings enabled, and with a value on the ID number field, this ID number gets overridden when a post is rated.

      I have recorded this video which shows the steps to replicate, I recommend watching it at twice the speed.

      IDnameForumBugRecording.mov

      These are the steps to replicate from the video, in text form:

      Steps to replicate

      1. Login as a teacher, and go to a course.
      2. Create a forum activity.
        Fill the name and description for the forum activity.
        In the Whole forum grading section, on the Type dropdown, select "Point".
        In the Ratings section, on the Aggregate type dropdown, select "Maximum rating".
        In the Common module settings, in the ID number text field, type in any text.
        Click on "Save and return to course".
      3. Back in the course, go to Grades -> Gradebook setup.
        Scroll down and click on Edit, then click on "Edit calculation".
      4. Check the ID number of the forum activity created on step 2. It matches the ID number you input also on step 2.
      5. Login as a student enrolled on the same course from step 1 (or use an incágni session a different browser session).
      6. Go to that course, then enter the forum created on step 2.
      7. Add a discussion topic. Input any subject and message, then click on "Post to forum".
      8. Login as the teacher from step 1 again, go back to the course.
      9. Go to the forum, enter the post created by the student user.
      10. In the Maximum rating dropdown, select any rating. In this very moment, the ID number of the forum has been overridden (you could check the DB to see this).
      11. Go back to the course, then go to Grades -> Gradebook setup.
        Scroll down and click on Edit, then click on "Edit calculation".
      12. Check the ID number of the forum activity, now the ID number is shown with its value overridden with a number.

      Expected behavior

      On step 12, the ID number matches the original ID number that was set on step 2.

      Observed behavior

      On step 12, the ID number is replaced with digits.

            Unassigned Unassigned
            julian.tovar Julian Tovar
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m

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