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

webservice: Create course doesn't initialise all course section records

    XMLWordPrintable

    Details

    • Database:
      Any
    • Testing Instructions:
      Hide
      • Create a course via web service core_course_create_courses
      • Get course content via web service core_course_get_contents to verify there is more than one section created by default

      OR

      • Ensure all course sections are created for the new course without viewing the course

      OR

      • "test_create_course_numsections" unit test passes.
      Show
      Create a course via web service core_course_create_courses Get course content via web service core_course_get_contents to verify there is more than one section created by default OR Ensure all course sections are created for the new course without viewing the course OR "test_create_course_numsections" unit test passes.
    • Workaround:
      Hide

      Visit the new course then call via web service core_course_get_contents.

      Show
      Visit the new course then call via web service core_course_get_contents.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Pull from Repository:

      Description

      When Core Web Service create courses is called (core_course_create_courses), the courses are created but you can't get a list of the course section when using get course content (core_course_get_contents).

       

      This item mimics the behaviour when viewing the course where it checks to see if all course sections exist in the database.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Jul/17