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

Javascript errors when viewing forum when user can't add a discussion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7
    • Fix Version/s: 3.7
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide

      Testing Instructions:

      1. Login as an admin.
      2. Create an "Each person posts one discussion" forum.
      3. Open up the browser inspector.
      4. Add a post in the newly created forum.
      5. Confirm no js errors appear in the inspector
      Show
      Testing Instructions: Login as an admin. Create an "Each person posts one discussion" forum. Open up the browser inspector. Add a post in the newly created forum. Confirm no js errors appear in the inspector
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Epic Link:
    • Pull from Repository:
    • Pull Master Branch:
      MDL-65528-master

      Description

      When viewing a forum that the user isn't able to create a discussion we get Javascript errors in the console.

      There are multiple scenarios where this occurs, for example:

      • Viewing a Q and A forum as a user that can't create a discussion (e.g. student)
      • Viewing an "Each user posts single discussion" forum as a user that has already created their single discussion

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                20/May/19

                Time Tracking

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