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

Sending bulk messages duplicate id

    XMLWordPrintable

    Details

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

      Bulk user actions message

      1. Install a fresh Moodle site
      2. Create a few users
      3. Log in as admin
      4. Go to Site admin > Users > Accounts > Bulk user actions
      5. Select the 'admin user' and 1 other user from the options in the left list and click 'Add to selection' (you should see the list on the right hand side fill up now).
      6. Under the 'With selected users' select box, select 'Send a message' and click 'go'
      7. Enter the text 'Bananas!' and click 'Save changes'
      8. Confirm using the dialog.
      9. Open the messaging pane
      10. Expand the 'messages' section
      11. Verify you have a 1 message for the other user you selected on the site, with the text 'Bananas!'
      12. Verify you don't see a message from yourself
      13. Check the count next to the 'messages' and Verify it accurately represents the number of conversations there. If you're on a fresh install, this should be 1 - with the 'other' user you selected in step 5
      Show
      Bulk user actions message Install a fresh Moodle site Create a few users Log in as admin Go to Site admin > Users > Accounts > Bulk user actions Select the 'admin user' and 1 other user from the options in the left list and click 'Add to selection' (you should see the list on the right hand side fill up now). Under the 'With selected users' select box, select 'Send a message' and click 'go' Enter the text 'Bananas!' and click 'Save changes' Confirm using the dialog. Open the messaging pane Expand the 'messages' section Verify you have a 1 message for the other user you selected on the site, with the text 'Bananas!' Verify you don't see a message from yourself Check the count next to the 'messages' and Verify it accurately represents the number of conversations there. If you're on a fresh install, this should be 1 - with the 'other' user you selected in step 5
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-64167-master-2

      Description

      Sending bulk messages throws DB error

      To replicate:

      1. Create a new instance
      2. Login as admin
      3. Upload users from attached csv
      4. Navigate to Site Admin -> Users -> Bulk user actions
      5. Select all users
      6. In "With selected users.." choose "Send a message"
      7. Send some random message
      8. Open the message drawer and notice the message count is there but no messages.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/18

                  Time Tracking

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