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

Add entry on glossary WS is not admiting HTML on description field

XMLWordPrintable

    • MOODLE_32_STABLE
    • MOODLE_32_STABLE
    • MDL-57737-master
    • Hide
      1. Create a course with a user enrolled.
      2. Create a glossary that user can add entries.
      3. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      4. Create a Token for the 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, glossaryid (the discussion you created id value) and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'glossaryid=6&concept=title&definition=%3Cp%3Etest%3C%2Fp%3E&definitionformat=1&moodlewssettingfilter=true&moodlewssettingfileurl=true&wsfunction=mod_glossary_add_entry&wstoken=e81c7692e00fdd8e884a47f7321eac09'

      6. Check there are no errors and entry has been added.
      Show
      Create a course with a user enrolled. Create a glossary that user can add entries. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for the 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, glossaryid (the discussion you created id value) and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'glossaryid=6&concept=title&definition=%3Cp%3Etest%3C%2Fp%3E&definitionformat=1&moodlewssettingfilter=true&moodlewssettingfileurl=true&wsfunction=mod_glossary_add_entry&wstoken=e81c7692e00fdd8e884a47f7321eac09' Check there are no errors and entry has been added.

      Now only accepts PARAM_TEXT and it should be changed to PARAM_RAW.

            pferre22 Pau Ferrer
            pferre22 Pau Ferrer
            Dani Palou Dani Palou
            Dan Poltawski Dan Poltawski
            Jun Pataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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