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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.9.7, 3.0.5, 3.1.1
    • 3.0.6, 3.1.2
    • Badges
    • MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • wip-mdl-55749
    • 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"

    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

              rajeshtaneja Rajesh Taneja
              rajeshtaneja Rajesh Taneja
              Jun Pataleta Jun Pataleta
              Dan Poltawski Dan Poltawski
              John Okely John Okely
              Yuliya Bozhko, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Sep/16