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

External function tool_mobile_get_config is not formatting strings or texts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.2
    • Component/s: Web Services
    • Labels:
    • Testing Instructions:
      Hide
      1. Enable the multi-lang content filter to be applied to content and headers
      2. Add multi-lang tags to the site fullname, shortname and summary (description)
      3. Enable "Mobile services": Plugins ► Web Services ► Mobile
      4. Create a Token for one normal user:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      5. Next, you can do a CURL REST call simulating a WS client with the user.
        • You need to replace the wstoken, and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=ffbe3a3002f235bf9d01fd9369e10b66&section=frontpagesettings&moodlewssettingfilter=true' | python -m "json.tool"

      6. Check that you receive the fullname, shortname and summary fields correctly formatted (without the multi-lang tags)
      Show
      Enable the multi-lang content filter to be applied to content and headers Add multi-lang tags to the site fullname, shortname and summary (description) Enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for one normal user: Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the user. You need to replace the wstoken, and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=ffbe3a3002f235bf9d01fd9369e10b66&section=frontpagesettings&moodlewssettingfilter=true' | python -m "json.tool" Check that you receive the fullname, shortname and summary fields correctly formatted (without the multi-lang tags)
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-56463-master

      Description

      Notice that when reviewing the code, it should apply external_format_string and external_format_text in summary, fullname and shortname

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/Dec/16