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

Forum subscription fails when in group mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.1
    • Fix Version/s: 2.8.2
    • Component/s: Forum
    • Database:
      PostgreSQL
    • Testing Instructions:
      Hide
      1. Create a new forum with the Groups mode set to "Visible Groups"
      2. As a user enrolled in the course, click "Subscribe to this forum" in the Navigation
        • Confirm that you were subscribed to the forum
      Show
      Create a new forum with the Groups mode set to "Visible Groups" As a user enrolled in the course, click "Subscribe to this forum" in the Navigation Confirm that you were subscribed to the forum
    • Workaround:
      Hide

      /mod/forum/subscription.php

      The has_capability calls on line 80 is missing the context.

      if ($groupmode && !$issubscribed && !has_capability('moodle/site:accessallgroups', $context)) {
      if (!groups_get_all_groups($course->id, $USER->id))

      { print_error('cannotsubscribe', 'forum'); }

      }

      Show
      /mod/forum/subscription.php The has_capability calls on line 80 is missing the context. if ($groupmode && !$issubscribed && !has_capability('moodle/site:accessallgroups', $context)) { if (!groups_get_all_groups($course->id, $USER->id)) { print_error('cannotsubscribe', 'forum'); } }
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull Master Branch:
      MDL-48274-master
    • Sprint:
      FRONTEND Sprint 15

      Description

      The subscription in forum fails when group mode is enabled because of a slight coding error in mod\forum\subscribe.php line 80

        Attachments

          Activity

            People

            Assignee:
            dobedobedoh Andrew Lyons
            Reporter:
            mwehr Mario Wehr
            Peer reviewer:
            Zachary Durber Zachary Durber
            Integrator:
            Dan Poltawski Dan Poltawski
            Tester:
            Jetha Chan Jetha Chan
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/Jan/15