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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.10.7, 3.11.3, 4.0
    • 3.10.8, 3.11.4
    • Accessibility, Badges
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-72990-311
    • 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

    Description

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

      Attachments

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

        Activity

          People

            rezaie9 Shamim Rezaie
            rezaie9 Shamim Rezaie
            Simey Lameze Simey Lameze
            Andrew Lyons Andrew Lyons
            Angelia Dela Cruz Angelia Dela Cruz
            Yuliya Bozhko, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8/Nov/21

              Time Tracking

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