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

Validate_parameters should return an array without the optional parameter on update operation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.0
    • 2.0
    • Web Services
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      When a ws client calls update_users(), the validate_parameters function will return all optional attributs with their default values (even if the ws client send an object without any optional attribut).
      This implies that if a ws client wants to update a user, the ws client must retrieve the user with all his optional values first. Then the ws client must send the complete user object in the update_users() call (with the optional attributs set to the previously retrieved values, if these values are the same).
      If the ws client doesn't send a full user object, the missing optional attributs will be overwritten by their default in the description.

            jerome Jérôme Mouneyrac
            jerome Jérôme Mouneyrac
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.