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

Bug in datalib.php instance_is_visible()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      datalib.php - function instance_is_visible(...)

      Params are missing: if ($records = $DB->get_records_sql("SELECT...")
      Fix: if ($records = $DB->get_records_sql("SELECT...", $params)

      I attached a patch.

      QA Note:
      this is break the lesson creation. So if you can create a lesson, this bug has been fixed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                skodak Petr Skoda
                Reporter:
                jerome Jérôme Mouneyrac
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10