Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3868

Badges are empty when navigating to own user profile from online users block

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for testing
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.5
    • Fix Version/s: None
    • Component/s: Users
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

      1. In a site as admin, add the "Online users" block in the Dashboard. Master site already has it.
      2. If needed, create a new user in the site and assign it at least 1 badge in the site context. E.g. u2 in master site already has them, probably other test users too.
      3. Login as the user with the badges in the app.
      4. Perform a PTR in the Dashboard (to make sure you appear in the Online users block).
      5. Click in your user name in the Online users block.
      6. In the profile page, click "Badges". Check that the app successfully displays the site badges for the user.
      Show
      This issue only needs to be tested in 1 device. In a site as admin, add the "Online users" block in the Dashboard. Master site already has it. If needed, create a new user in the site and assign it at least 1 badge in the site context. E.g. u2 in master site already has them, probably other test users too. Login as the user with the badges in the app. Perform a PTR in the Dashboard (to make sure you appear in the Online users block). Click in your user name in the Online users block. In the profile page, click "Badges". Check that the app successfully displays the site badges for the user.
    • Affected Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 4.0

      Description

      To reproduce, on a user with some badge.

      1. Enter the app and check on your own profile if you can see the badges.
      2. Now from the site home Online users block (add it if not there) click on yourself.
      3. Navigate to badges and check it's empty.

      This is because it uses SITEID course on the profile link (and then the badges link).

      Possible solution is to remove courseid from profile page when it's related to SITEID.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            pferre22 Pau Ferrer
            Peer reviewer:
            Pau Ferrer Pau Ferrer
            Integrator:
            Pau Ferrer Pau Ferrer
            Tester:
            Isabel Renedo Rouco Isabel Renedo Rouco
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: