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

Inaccurate query in get_capability_info()

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            maherne Michael Aherne
            Reporter:
            maherne Michael Aherne
            Peer reviewer:
            Marina Glancy
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            CiBoT
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              2/Feb/15