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

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

    Details

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

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              jamiesensei Jamie Pratt created issue -
              jamiesensei Jamie Pratt made changes -
              Field Original Value New Value
              Link This issue blocks MDL-20808 [ MDL-20808 ]
              jamiesensei Jamie Pratt made changes -
              Status Open [ 1 ] Resolved [ 5 ]
              Resolution Fixed [ 1 ]
              jerome Jérôme Mouneyrac made changes -
              Fix Version/s 2.0 [ 10122 ]
              dougiamas Martin Dougiamas made changes -
              Status Resolved [ 5 ] Closed [ 6 ]
              QA Assignee nobody
              dougiamas Martin Dougiamas made changes -
              Workflow jira [ 35081 ] MDL Workflow [ 63814 ]
              dougiamas Martin Dougiamas made changes -
              Workflow MDL Workflow [ 63814 ] MDL Full Workflow [ 93072 ]

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

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