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

Undefined index in badges/renderer.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.1, 3.7
    • Fix Version/s: 3.6.3
    • Component/s: Badges
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull from Repository:
    • Pull 3.6 Branch:
    • Pull Master Branch:
      MDL-64441-master

      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

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  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