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

Issued badge page doesn't filter site/course names (e.g. multi-lang content)

    XMLWordPrintable

Details

    • MOODLE_310_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-72857-310
    • MDL-72857-311
    • Hide

      Setup

      1. Log in as admin
      2. Navigate to Site administration > Front page > Front page settings in site administration
      3. Set Full site name to the following:

        <span class="multilang" lang="en">Moodle (EN)</span><span class="multilang" lang="de">Moodle (DE)</span>
        

      4. Navigate to Plugins > Filters > Manage filters in site administration
      5. Set Multi-Language Content to On and Apply to: Content and headings
      6. Create a new user
      7. Create a new course, with the following Course full name:

        <span class="multilang" lang="en">Course (EN)</span><span class="multilang" lang="de">Course (DE)</span>
        

      8. Enrol new user in new course as a student

      Issue a site badge

      1. Navigate to Badges > Add a new badge in site administration
      2. Fill in required fields
      3. Press Create badge
      4. Add badge criteria Manual issue by role
      5. Select all roles, press Save
      6. Press Enable access > Continue
      7. Press Recipients
      8. Press Award Badge
      9. Select Manager role
      10. Select test user from Potential badge recipients, press Award Badge
      11. Navigate to Badges > Manage badges in site administration
      12. Press the Recipients column for your site badge
      13. Press View issues badge for your test user
      14. Confirm you see the following (e.g. multi-lang content is filtered):

        Issued by Moodle (EN)
        

      Issue a site badge (Badge issuer email address) - master only

      1. Navigate to Badges > Badge settings in site administration
      2. Set Badge issuer email address and save changes
      3. Navigate back to your site badge
      4. Press the Recipients column for your site badge
      5. Press View issued badge for your test user
      6. Confirm the Issued by link shows Moodle (EN) and links to the email address you previously set

      Issue a course badge

      1. Navigate to previously created course
      2. Select More... from the actions menu
      3. Click Badges > Add a new badge
      4. Fill in required fields
      5. Press Create badge
      6. Add badge criteria Manual issue by role
      7. Select all roles, press Save
      8. Press Enable access > Continue
      9. Press Recipients
      10. Press Award Badge
      11. Select Manager role
      12. Select test user from Potential badge recipients, press Award Badge
      13. Press Manage badges from the course breadcrumbs
      14. Press the Recipients column for your course badge
      15. Press View issues badge for your test user
      16. Confirm you see the following (e.g. multi-lang content is filtered) in master:

        Issued by Moodle (EN)
        Course: Course (EN)
        

      17. Confirm you see the following (e.g. multi-lang content is filtered) in 311/310:

        Issuer name Moodle (EN)
        Course Course (EN)
        

      Show
      Setup Log in as admin Navigate to Site administration > Front page > Front page settings in site administration Set Full site name to the following: <span class="multilang" lang="en">Moodle (EN)</span><span class="multilang" lang="de">Moodle (DE)</span> Navigate to Plugins > Filters > Manage filters in site administration Set Multi-Language Content to On and Apply to: Content and headings Create a new user Create a new course, with the following Course full name : <span class="multilang" lang="en">Course (EN)</span><span class="multilang" lang="de">Course (DE)</span> Enrol new user in new course as a student Issue a site badge Navigate to Badges > Add a new badge in site administration Fill in required fields Press Create badge Add badge criteria Manual issue by role Select all roles, press Save Press Enable access > Continue Press Recipients Press Award Badge Select Manager role Select test user from Potential badge recipients , press Award Badge Navigate to Badges > Manage badges in site administration Press the Recipients column for your site badge Press View issues badge for your test user Confirm you see the following (e.g. multi-lang content is filtered): Issued by Moodle (EN) Issue a site badge (Badge issuer email address) - master only Navigate to Badges > Badge settings in site administration Set Badge issuer email address and save changes Navigate back to your site badge Press the Recipients column for your site badge Press View issued badge for your test user Confirm the Issued by link shows Moodle (EN) and links to the email address you previously set Issue a course badge Navigate to previously created course Select More... from the actions menu Click Badges > Add a new badge Fill in required fields Press Create badge Add badge criteria Manual issue by role Select all roles, press Save Press Enable access > Continue Press Recipients Press Award Badge Select Manager role Select test user from Potential badge recipients , press Award Badge Press Manage badges from the course breadcrumbs Press the Recipients column for your course badge Press View issues badge for your test user Confirm you see the following (e.g. multi-lang content is filtered) in master: Issued by Moodle (EN) Course: Course (EN) Confirm you see the following (e.g. multi-lang content is filtered) in 311/310: Issuer name Moodle (EN) Course Course (EN)

    Description

      When a badge has been issued by a site and/or course that contains multi-lang tags in it's name, these are not filtered properly when displaying the issued badge details:

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              pholden Paul Holden
              Simey Lameze Simey Lameze
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Gladys Basiana Gladys Basiana
              Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8/Nov/21

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 4 minutes
                  4h 4m