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

Incorrect URL in mod/forum get_unsubscribediscussionlink

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.3
    • 3.0.1, 3.1
    • Forum
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_30_STABLE
    • patch-11
    • Hide
      1. Login as an admin.
      2. Set up SMTP settings so that the site can send forum posts through email.
      3. Create a course with a forum.
      4. Login as a student with a valid email address.
      5. Create a discussion and make a post.
        • Confirm that the Subscribe to/Unsubscribe from this discussion links work as expected in the discussion page.
      6. Subscribe to the discussion.
      7. Login as another user and post a reply to the discussion.
      8. Check the email for the posted reply to the discussion and check the Unsubscribe from this discussion link.
        • Confirm in the email that the Unsubscribe from this discussion link has the URL

          https://[YOUR_MOODLE_ADDRESS]/mod/forum/subscribe.php?id=[FORUM_ID]&d=[DISCUSSION_ID]

      9. Click on the Unsubscribe from this discussion link.
        • Confirm that you don't get a 404 error and that you get unsubscribed from the discussion.
      Show
      Login as an admin. Set up SMTP settings so that the site can send forum posts through email. Create a course with a forum. Login as a student with a valid email address. Create a discussion and make a post. Confirm that the Subscribe to/Unsubscribe from this discussion links work as expected in the discussion page. Subscribe to the discussion. Login as another user and post a reply to the discussion. Check the email for the posted reply to the discussion and check the Unsubscribe from this discussion link. Confirm in the email that the Unsubscribe from this discussion link has the URL https://[YOUR_MOODLE_ADDRESS]/mod/forum/subscribe.php?id=[FORUM_ID]&d=[DISCUSSION_ID] Click on the Unsubscribe from this discussion link. Confirm that you don't get a 404 error and that you get unsubscribed from the discussion.

      The function 'get_unsubscribediscussionlink' returns a URL like this:
      '/mod/discussion/subscribe.php'

      https://github.com/moodle/moodle/blob/master/mod/forum/classes/output/forum_post.php#L341

      That doesn't exist!
      Looks like it should be going to '/mod/forum/subscribe.php'?

            skylarkelty Skylar Kelty
            skylarkelty Skylar Kelty
            Jun Pataleta Jun Pataleta
            Andrew Lyons Andrew Lyons
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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