Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2362

BUG: core_course_create_courses ignores courseformatoptions parameters

$
0
0
by Dorel Manolescu.  

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


https://tracker.moodle.org/browse/MDL-66854




Viewing all articles
Browse latest Browse all 2362

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>