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

undefined variable $OUTPUT in badges/criteria/award_criteria_course.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.7, 3.0.5, 3.1.1
    • Fix Version/s: 3.0.6, 3.1.2
    • Component/s: Badges
    • Labels:
    • Testing Instructions:
      Hide
      1. Login as admin.
      2. Turn debugging ON.
      3. Create a course and enable completion tracking.
      4. Under Course administration go to Badges ► Manage badges
      5. Add a new badge.
      6. On the badge's page, click on the Criteria.
      7. Under Add badge criteria, select Course completion
      8. Enter a value for the Minimum grade required, then click Save.
      9. Open another window and delete the course.
      10. Refresh the page with the badge settings.
      11. You should see exception "invalidrecordunknown"
      Show
      Login as admin. Turn debugging ON. Create a course and enable completion tracking. Under Course administration go to Badges ► Manage badges Add a new badge. On the badge's page, click on the Criteria . Under Add badge criteria , select Course completion Enter a value for the Minimum grade required , then click Save . Open another window and delete the course. Refresh the page with the badge settings. You should see exception "invalidrecordunknown"
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      wip-mdl-55749

      Description

      global $OUTPUT is not defined and will lead to undefined variable $OUTPUT in badges/criteria/award_criteria_course.php:103 in award_criteria_course::get_details()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rajeshtaneja Rajesh Taneja
              Reporter:
              rajeshtaneja Rajesh Taneja
              Peer reviewer:
              Jun Pataleta
              Integrator:
              Dan Poltawski
              Tester:
              John Okely
              Participants:
              Component watchers:
              Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Sep/16