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

Unread message count not correctly updated when online email notifications are enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2, 3.3
    • Fix Version/s: 3.2.3
    • Component/s: Messages
    • Labels:
    • Testing Instructions:
      Hide
      Prerequisites.
      1. Set up an SMTP server on your site so email_to_user() (used by message_output_email) won't complain.
      Test 1
      1. Log in on one browser as a user (user 1).
      2. Click on the messaging icon in the top right.
      3. Click on the 'Message preferences' icon.
      4. Check that for 'Personal messages between users' 'Email' is enabled for 'Offline' only.
      5. Log in on another browser as another user (user 2).
      6. Send a message from user 2 to user 1.
      7. Refresh the browser user 1 is using.
      8. A new message notification should displayed in the header next to user menu.
      9. Refresh the page and verify that the notification is still displayed.
      10. Click to read the message so that the notification disappears.
      11. Click on the messaging icon in the top right.
      12. Click on the 'Message preferences' icon.
      13. Check that for 'Personal messages between users' 'Email' is enabled for 'Online' as well.
      14. As user 2 send another message to user 1.
      15. Refresh the browser user 1 is using.
      16. Verify that user 1 receives a new message notification.
      17. Verify that user 1 also receives an email notification.
      Test 2
      1. Log in as an admin.
      2. Visit 'Site administration' > 'Plugins' > 'Manage message outputs'.
      3. Disable the 'Web' processor.
      4. Repeat the above test.
      Show
      Prerequisites. Set up an SMTP server on your site so email_to_user() (used by message_output_email) won't complain. Test 1 Log in on one browser as a user (user 1). Click on the messaging icon in the top right. Click on the 'Message preferences' icon. Check that for 'Personal messages between users' 'Email' is enabled for 'Offline' only. Log in on another browser as another user (user 2). Send a message from user 2 to user 1. Refresh the browser user 1 is using. A new message notification should displayed in the header next to user menu. Refresh the page and verify that the notification is still displayed. Click to read the message so that the notification disappears. Click on the messaging icon in the top right. Click on the 'Message preferences' icon. Check that for 'Personal messages between users' 'Email' is enabled for 'Online' as well. As user 2 send another message to user 1. Refresh the browser user 1 is using. Verify that user 1 receives a new message notification. Verify that user 1 also receives an email notification. Test 2 Log in as an admin. Visit 'Site administration' > 'Plugins' > 'Manage message outputs'. Disable the 'Web' processor. Repeat the above test.
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-58650_master

      Description

      See - MDLQA-10482. When a user has online email notifications enabled, and they receive a message from another user, they should still see the normal red, unread message counter in the notification bar when they hit a new page. This isn't happening when online email notifications are enabled.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              jaked Jake Dallimore
              Peer reviewer:
              Ryan Wyllie
              Integrator:
              Jake Dallimore
              Tester:
              Simey Lameze
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/May/17