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

amf web service : In Flash an array has normally a numerical key

XMLWordPrintable

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

      From amf should be able to return AND accept an object type instead of an array type for arrays with string keys ie. external_single_structures.

      So in the patch attached to MDL-20808 I have modified the validate_parameters so that :

      • it can accept an object instead of an array where a external_single_structure param is expected. An object is automatically cast to an array.
      • also am using validate_parameters static function to cast the return result to the proper types. Have added a parameter that defaults to false that tells the function to return an external_single_structures as an object.

            jerome Jérôme Mouneyrac
            jamiesensei Jamie Pratt (Inactive)
            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.