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

badges/badge.php uses wrong text for the badge image alt

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-72990-master
    • Hide
      1. Log in as admin
      2. Go to Site administration > Badges > Manage Badges
      3. Create 2 badges. Other than the mandatory fields, fill the 'Image caption' field with a random text for the first badge, and leave that field empty for the second badge
      4. Go to Site administration > Badges > Manage Badges
      5. For each badge you created:
        1. Click on the badge title
        2. Go to the Criteria tab
        3. Add 'Manual issue by role' criteria and select 'Manager' on the next screen and save changes
        4. Click on the 'Enable access' button and confirm the action on the next screen
        5. Go to the Recipients tab and award the badge to yourself (to admin)
      6. Go to your profile page
      7. For each of the two badges you see there:
        1. Click on the badge
        2. Inspect the badge image element
          1. For the first badge: Verify that the alt attribute is set to what you provided as the image caption
          2. For the second badge: Verify that the alt attribute is present, but set to an empty string
      Show
      Log in as admin Go to Site administration > Badges > Manage Badges Create 2 badges. Other than the mandatory fields, fill the 'Image caption' field with a random text for the first badge, and leave that field empty for the second badge Go to Site administration > Badges > Manage Badges For each badge you created: Click on the badge title Go to the Criteria tab Add 'Manual issue by role' criteria and select 'Manager' on the next screen and save changes Click on the 'Enable access' button and confirm the action on the next screen Go to the Recipients tab and award the badge to yourself (to admin) Go to your profile page For each of the two badges you see there: Click on the badge Inspect the badge image element For the first badge:  Verify that the alt attribute is set to what you provided as the image caption For the second badge: Verify that the alt attribute is present, but set to an empty string

      at the moment, the badge image alt is set to badge name. it should be set to the value of imagecaption

        1. MDL-72990_master_badge1.png
          485 kB
          Angelia Dela Cruz
        2. MDL-72990_master_badge2.png
          514 kB
          Angelia Dela Cruz
        3. MDL-72990_v310_badge1.png
          372 kB
          Angelia Dela Cruz
        4. MDL-72990_v310_badge2.png
          372 kB
          Angelia Dela Cruz
        5. MDL-72990_v311_badge1.png
          365 kB
          Angelia Dela Cruz
        6. MDL-72990_v311_badge2.png
          370 kB
          Angelia Dela Cruz
        7. MDL-72990 1.png
          161 kB
          Simey Lameze

            rezaie9 Shamim Rezaie
            rezaie9 Shamim Rezaie
            Simey Lameze Simey Lameze
            Andrew Lyons Andrew Lyons
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 52 minutes
                1h 52m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.