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