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

Bug in datalib.php instance_is_visible()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0
    • 2.0
    • Database SQL/XMLDB
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      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.

            skodak Petr Skoda
            jerome Jérôme Mouneyrac
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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