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

Inaccurate query in get_capability_info()

XMLWordPrintable

      The statement used in get_capability_info() in accesslib.php to get all capabilities is:

      $caps = $DB->get_records('capabilities', array(), 'id, name, captype, riskbitmask');
      

      This obviously returns the records required but seems slightly wrong as the id is unique, so the rest of the sort parameters are redundant.

            maherne Michael Aherne
            maherne Michael Aherne
            Marina Glancy Marina Glancy
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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