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

limitfrom, limitnumber addition to get_enrolled_users/get_enrolled_users_with_capability missed a break

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.4, 2.6.1, 2.7
    • 2.5.5, 2.6.2
    • Web Services

    Description

      'limitfrom' and 'limitnumber' options were added in commit 3ed74dd1 in enrol/externallib.php line 116. This added two cases to switch but only one break; As a result 'userfields' case now misses a break and if userfields option is used in addition to limitfrom the limitfrom will get value 0 every time.

      Attachments

        Activity

          People

            fred Frédéric Massart
            mikran Mikko Rantanen
            Petr Skoda Petr Skoda
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Mar/14