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

get_enrolled_sql only pays attention to $groupid if a capability has been specified as well

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Enrolments
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Hi Petr,

      Was working on porting MDL-23848 to head and came across a couple of bugs within get_enrolled_sql.

      In this case $groupid is only made use of if the caller also specificed a $withcapabaility, i.e. if you supply a blank $withcapability then $groupid is ignored.

      I'm not 100% sure if this is an error or not, it may be intended functionality, or maybe required functionality?
      I'll leave that up to you being the master of enrolments

      Cheers
      Sam

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              samhemelryk Sam Hemelryk
              Tester:
              Nobody
              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:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10