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

Webservice core_course_import_course doesn't save the course image

    XMLWordPrintable

    Details

    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_38_STABLE, MOODLE_39_STABLE
    • Pull Master Branch:

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            mcornut Cornut Matthieu
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: