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

The function message_count_unread_messages counts sent messages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5.1, 3.6
    • Fix Version/s: 3.5.3
    • Component/s: Messages
    • Labels:

      Description

      message_count_unread_messages (used in course overview block) gives wrong message count when only one user is supplied, because it counts even sent messages. If both users are supplied, it works correctly.

      This function was previously used by Course overview legacy block, now it's gone. We're still using it in our installation, and i'm unsure if it's currently used by any other plugin. But the described function misbehaves anyway.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              pavel.m.sokolov Pavel Sokolov
              Peer reviewer:
              Mark Nelson
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Nov/18