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

Undefined offsets in Forum

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.7
    • 3.7
    • Forum
    • MOODLE_37_STABLE
    • MOODLE_37_STABLE
    • MDL-65608-master
    • Hide
      1. Log in as admin
      2. Go to site administration > development > debugging and set "Debug messages" to "DEVELOPER"
      3. Create a course
      4. Create a group in the course
        • Course settings cog > more > Users tab > groups
      5. Create a forum activity
        1. Under "Common module settings" set the "Group mode" to "Visible groups"
      6. View the forum
      7. At the top of the page (above the "Add a new discussion topic button") change the Visible groups selector from "All participants" to the group you created
      8. Add a new discussion (this creates a discussion in that group)
      9. CONFIRM that the group name shows up in the "Group" column for the newly created discussion
      10. Change the "Visible groups" selector at the top of the page to "All participants"
      11. Go to the groups page for the course
      12. Delete the group you created
      13. View the forum
      14. CONFIRM that you do not see the "Undefined offset" debugging error at the top of the page (as shown in the screenshot attached to this issue)
      15. Edit the forum settings
      16. Change the "Group mode" to "No groups" under the "Common module settings" section
      17. View the forum
      18. CONFIRM that you don't see the "Undefined offset" debugging error
      Show
      Log in as admin Go to site administration > development > debugging and set "Debug messages" to "DEVELOPER" Create a course Create a group in the course Course settings cog > more > Users tab > groups Create a forum activity Under "Common module settings" set the "Group mode" to "Visible groups" View the forum At the top of the page (above the "Add a new discussion topic button") change the Visible groups selector from "All participants" to the group you created Add a new discussion (this creates a discussion in that group) CONFIRM that the group name shows up in the "Group" column for the newly created discussion Change the "Visible groups" selector at the top of the page to "All participants" Go to the groups page for the course Delete the group you created View the forum CONFIRM that you do not see the "Undefined offset" debugging error at the top of the page (as shown in the screenshot attached to this issue) Edit the forum settings Change the "Group mode" to "No groups" under the "Common module settings" section View the forum CONFIRM that you don't see the "Undefined offset" debugging error

    Description

      When testing MDLSITE-5730 I found a forum that is throwing some undefined offset errors.

      Link: https://next.moodle.org/mod/forum/view.php?id=4652

      Attachments

        Issue Links

          Activity

            People

              ryanwyllie Ryan Wyllie
              mathewmay Mathew May
              Mathew May Mathew May
              Jun Pataleta Jun Pataleta
              Janelle Barcega Janelle Barcega
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                20/May/19

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 47 minutes
                  3h 47m