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

Mobile notifications message output doesn't check if userto->username is empty

    XMLWordPrintable

    Details

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

      (Needs a course with a student and teacher enrolled - to check the bulk user messaging change)

      1. # Configure and enable the "Mobile notifications" message output, you can find and access key in the comments bellow (comment restricted)
      2. Once configured (you only need to add the access key), remember to enable the plugin.
      3. Enable "Mobile services": Plugins ► Web Services ► Mobile
      4. Log in with a student account in Moodle web, go to your messaging preferences and enable receive Mobile notifications for internal messages.
      5. Now login with the student in the Moodle Mobile app so you can receive push notifications in there.
      6. In Moodle web, login as teacher and use bulk messaging (https://docs.moodle.org/31/en/Bulk_user_actions) to send a message to a few students, including the student. Check that you receive a notification in the Mobile app for your test student
      7. Click the notification in the app. Check that you're redirected to messages.
      Show
      (Needs a course with a student and teacher enrolled - to check the bulk user messaging change) # Configure and enable the "Mobile notifications" message output, you can find and access key in the comments bellow (comment restricted) Once configured (you only need to add the access key), remember to enable the plugin. Enable "Mobile services": Plugins ► Web Services ► Mobile Log in with a student account in Moodle web, go to your messaging preferences and enable receive Mobile notifications for internal messages. Now login with the student in the Moodle Mobile app so you can receive push notifications in there. In Moodle web, login as teacher and use bulk messaging ( https://docs.moodle.org/31/en/Bulk_user_actions ) to send a message to a few students, including the student. Check that you receive a notification in the Mobile app for your test student Click the notification in the app. Check that you're redirected to messages.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-54928-master

      Description

      This may cause problems when generating the unique site id used by the Mobile app to identify the user + site.
      We must check if is empty or not and then if is empty retrieve the field from the users table.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jul/16