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

Add ra.id to default get_role_users $fields value

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5
    • Fix Version/s: None
    • Component/s: Roles / Access
    • Labels:

      Description

      get_role_users returns a list of fields including users and its roles data. The final sql always uses role_assignments table so it should be safe to include ra.id to the list of returned fields. Another reason to create this issue is that we are showing a debugging message to people calling get_role_users with multiple roles, because the final sql includes a distinct.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              farhan6318 Farhan Karmali
              Reporter:
              dmonllao David Monllaó
              Peer reviewer:
              Sara Arjona (@sarjona)
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: