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

Undefined index in badges/renderer.php

XMLWordPrintable

    • 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

      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

       

            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
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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