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

Undefined index in badges/renderer.php

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.6.1, 3.7
    • 3.6.3
    • Badges
    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • MOODLE_36_STABLE
    • MDL-64441-master
    • Hide

      Setup

      1. Login as admin
      2. Create a badge without any language defined and another with language (they could be course badges or site badges, as preferred)
      3. Enable these badges
      4. Let user1 earn these badges

       

      Testing scenario

      1. Login as user1
      2. Access to the profile and click over the earned badge without any language defined
        • CHECK the language field is not displayed
      3. Access to the profile and click over the earned badge with the language defined
        • CHECK the language field is displayed and it has the expected value
      Show
      Setup Login as admin Create a badge without any language defined and another with language (they could be course badges or site badges, as preferred) Enable these badges Let user1 earn these badges   Testing scenario Login as user1 Access to the profile and click over the earned badge without any language defined CHECK the language field is not displayed Access to the profile and click over the earned badge with the language defined CHECK the language field is displayed and it has the expected value

    Description

      When viewing a user's badge from her profile and it hasn't any language defined, the following notice is displayed:

      Notice: Undefined index: in /var/www/html/badges/renderer.php on line 354

       

      Attachments

        Issue Links

          Activity

            People

              sarjona Sara Arjona (@sarjona)
              sarjona Sara Arjona (@sarjona)
              David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Janelle Barcega Janelle Barcega
              Yuliya Bozhko, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Mar/19

                Time Tracking

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