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

moodle_user_get_users_by_id() over XMLRPC without customfields fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Web Services
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      A call with moodle_user_get_users_by_id() over XMLRPC fails when no custom user fields are defined for a user.

      To reproduce just use the XMLRPC test client with users without custom fields. The faultString returned by the xmlrpc server:

      "Invalid external api response: customfields (Only arrays accepted.)"

      The patch attached solves the problem.

      Thanks in advance

        Attachments

        1. user_external.patch.txt
          0.8 kB
          Juan Segarra Montesinos

          Activity

            People

            Assignee:
            jerome Jérôme Mouneyrac
            Reporter:
            jsegarra Juan Segarra Montesinos
            Tester:
            Nobody
            Participants:
            Component watchers:
            Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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