Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3998

function facetoface_get_trainer_roles calls for undefined $params

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.2.5
    • 2.2.4
    • None
    • None
    • MOODLE_22_STABLE
    • MOODLE_22_STABLE

      When trying to create a session within a Face to Face activity, I get an error prompt because function is expecting $params and they arenot defines in /mod/facetoface/lib.php.

      Notice: Undefined variable: params in [wwwroot]/mod/facetoface/lib.php on line 3619

      Lines 3609-3619:
      // Load role names
      $rolenames = $DB->get_records_sql("
      SELECT
      r.id,
      r.name
      FROM

      {role}

      r
      WHERE
      r.id {$rolesql}
      AND r.id <> 0
      ", $params);

            aly Alastair Munro (Inactive)
            keithwbloom Keith Bloom (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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