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

Remove tags from outgoing notifications

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.5, 3.0.3
    • Fix Version/s: 2.9.6, 3.0.4
    • Component/s: Messages
    • Labels:
    • Testing Instructions:
      Hide

      You need and Android 4 or 5 phone or iPhone and the latest Moodle Mobile app version installed.

      1. As admin: Log in into your Moodle site, configure and enable the Plugins > Messages > Output Mobile notifications plugin (use the access key provided in the first comment in the issue)
      2. As normal user: Log in into your Moodle site, go to your messaging preferences and enable receive personal messages between users via "Mobile notifications"
      3. Open the Mobile app in your device and log in to the site, move the app to the background (switch to a different app or go to the main screen)
      4. As admin: Send a private message to the normal user including html tags, for example, <p>Hello!</p>

      You should receive a Push notification in your device, it will be displayed in the top tray. The message must not contain html tags, following the example it should read: Hello!

      Show
      You need and Android 4 or 5 phone or iPhone and the latest Moodle Mobile app version installed. As admin: Log in into your Moodle site, configure and enable the Plugins > Messages > Output Mobile notifications plugin (use the access key provided in the first comment in the issue) As normal user: Log in into your Moodle site, go to your messaging preferences and enable receive personal messages between users via "Mobile notifications" Open the Mobile app in your device and log in to the site, move the app to the background (switch to a different app or go to the main screen) As admin: Send a private message to the normal user including html tags, for example, <p>Hello!</p> You should receive a Push notification in your device, it will be displayed in the top tray. The message must not contain html tags, following the example it should read: Hello!
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-53635-master

      Description

      We must clean the message text to remove tags, notifications does not support html tags

      This was originally reported in the Mobile forum:
      https://moodle.org/mod/forum/post.php?reply=1328520#mformforum

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/May/16