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

core_course_create_courses ignores courseformatoptions parameters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.6
    • Fix Version/s: None
    • Component/s: Web Services
    • Labels:
      None
    • Affected Branches:
      MOODLE_36_STABLE

      Description

      After upgrading to latest moodle 3.6.6 I noticed that the core core_course_create_courses ignores the courseformatoptions parameters in web-service call. Example when I create a singleactivity type of course and add the type of activity this is ignored and default type of activity defined at site level is created.

      The change in the code that triggered the issue is:

      • file : course/format/lib.php
      • initial function: 797 protected function update_format_options($data, $sectionid = null)
      • code : $data = $this->validate_format_options((array)$data, $sectionid);

      This function "validate_format_options" is clearly not designed to handle web-service parameters.

      Please find attached postman collection which will help debug

       

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dman2 Dorel Manolescu
            Participants:
            Component watchers:
            Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: