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

External function: create_categories cause warnings

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3
    • 2.3
    • Web Services
    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • Hide

      Run the demo REST client with the right function name and:
      $params = array('categories' => array(array('name' => 'Test category')));

      This will go through the two code changes. If it creates a category at root level, all is working.

      Show
      Run the demo REST client with the right function name and: $params = array('categories' => array(array('name' => 'Test category'))); This will go through the two code changes. If it creates a category at root level, all is working.

    Description

      When calling core_course_create_categories without idnumber it causes a warning. parent parameter also needs more comment about how to set up a category as a root.

      Attachments

        Issue Links

          Activity

            People

              jerome Jérôme Mouneyrac
              jerome Jérôme Mouneyrac
              Sam Hemelryk Sam Hemelryk
              Rossiani Wijaya Rossiani Wijaya
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                25/Jun/12