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

Webservice core_course_import_course doesn't save the course image

XMLWordPrintable

    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • Hide

      1. Enable the webservice function "core_course_import_course" on your moodle instance. (https://docs.moodle.org/38/en/Using_web_services)
      2. Create a base course and a receiver course.
      3. Call the webservice to copy the content. If you add the option "overwriteconf" = 1, you'll see the replicated configuration in the receiver course. Example:

      /webservice/rest/server.php?moodlewsrestformat=json&wstoken=TOKEN&wsfunction=core_course_import_course&importfrom=2&importto=3&options[0][name]=overwriteconf&options[0][value]=1

      Show
      1. Enable the webservice function "core_course_import_course" on your moodle instance. ( https://docs.moodle.org/38/en/Using_web_services ) 2. Create a base course and a receiver course. 3. Call the webservice to copy the content. If you add the option "overwriteconf" = 1, you'll see the replicated configuration in the receiver course. Example: /webservice/rest/server.php?moodlewsrestformat=json&wstoken=TOKEN&wsfunction=core_course_import_course&importfrom=2&importto=3&options[0][name]=overwriteconf&options[0][value]=1

      Dear Moodle HQ,

      It would be awesome to copy the courseoverviewfiles when calling the core_course_import_course web service.

      The courseoverviewfiles are replicated by the course backup and restore process if the setting "overwrite_conf" is set to true in the restore plan.

      The patch I propose allow to set this option to true via the webservice call (keeping the default to no).

      Diff: https://github.com/moodle/moodle/compare/master...liip-elearning:MDL-67948

            Unassigned Unassigned
            mcornut Cornut Matthieu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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