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

Q&A Forum with separate groups displays incorrect warning message to students

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.1, 2.3.6, 2.4.3, 2.5.6, 2.6.3, 2.7, 2.8
    • Fix Version/s: 2.6.4, 2.7.1
    • Component/s: Forum
    • Testing Instructions:
      Hide

      Test 1: News forum

      1. Login as student and go to the news forum of a course
      2. Make sure no error message is displayed.

      Test 2: Standard forum with groups

      1. Create two groups "A" and "B" and a add a student to group "A".
      2. Create a standard forum with visible groups.
      3. Login as the student and go to the forum.
      4. Select group "All participants" and make sure the message "You do not have permission to add a new discussion topic for all participants." is displayed.
      5. Select group "A" and make sure the button "Add a add new discussion topic" is displayed.
      6. Select group "B" and make sure the message "Adding discussions to this forum requires group membership." is displayed.

      Test 3: Q&A forum with groups

      1. Create a group and add a student to the group.
      2. Create a forum of type "Q and A forum" with separate groups.
      3. Login as student and go to the forum.
      4. Make sure the message "This is a question and answer forum. In order to see other responses [...]" is displayed.
      5. Make sure no other message is displayed.

      Test 4: Each user forum with groups

      1. Create a group and add a student to the group.
      2. Create a forum of type "Each person posts one discussion" with separate groups.
      3. Login as student and go to the forum.
      4. Add a new discussion topic and go back to the forum.
      5. Make sure no error message is displayed.
      Show
      Test 1: News forum Login as student and go to the news forum of a course Make sure no error message is displayed. Test 2: Standard forum with groups Create two groups "A" and "B" and a add a student to group "A". Create a standard forum with visible groups. Login as the student and go to the forum. Select group "All participants" and make sure the message "You do not have permission to add a new discussion topic for all participants." is displayed. Select group "A" and make sure the button "Add a add new discussion topic" is displayed. Select group "B" and make sure the message "Adding discussions to this forum requires group membership." is displayed. Test 3: Q&A forum with groups Create a group and add a student to the group. Create a forum of type "Q and A forum" with separate groups. Login as student and go to the forum. Make sure the message "This is a question and answer forum. In order to see other responses [...] " is displayed. Make sure no other message is displayed. Test 4: Each user forum with groups Create a group and add a student to the group. Create a forum of type "Each person posts one discussion" with separate groups. Login as student and go to the forum. Add a new discussion topic and go back to the forum. Make sure no error message is displayed.
    • Workaround:
      Hide

      If Moodle 1.9-style behaviour (allowing students to ask questions / start discussions) is desired, set the mod/forum:addquestion capability to "allow" for the Student role.

      Show
      If Moodle 1.9-style behaviour (allowing students to ask questions / start discussions) is desired, set the mod/forum:addquestion capability to "allow" for the Student role.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-35514_master

      Description

      We have a course with separate groups forced. The users are in a group and when they click on the Q&A forum they receive the following message.

      "Adding discussions to this forum requires group membership."

      This is not correct, and is a red herring; although the Moodle 1.9 Q&A Forum allowed students to ask questions, the 2.x Q&A Forum does not allow them to (by default, that is - you can allow the mod/forum:addquestion capability for the student role, which will return it to 1.9-style behaviour). The message should either simply not be shown or state that the user does not have permission to add discussions to this forum (as is the case if the user is NOT in a group - "You do not have permission to add a new discussion topic for all participants" - except without the "for all participants" bit).

      As per Mary's comment below, the documentation has now been tweaked to try to point out that questions must be asked by teachers. This will hopefully help, but does not do anything about the fact that an incorrect message is being displayed.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jul/14