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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.7
    • 3.7
    • Forum
    • MOODLE_37_STABLE
    • MOODLE_37_STABLE
    • MDL-65528-master
    • 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

    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

            peterdias Peter Dias
            ryanwyllie Ryan Wyllie
            Mihail Geshoski Mihail Geshoski
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Anna Carissa Sadia Anna Carissa Sadia
            Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              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