mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-38144 categories are created in reverse sort order in externallib
This commit is contained in:
parent
f29e62cb6c
commit
db1eed7012
2 changed files with 6 additions and 3 deletions
|
@ -1678,7 +1678,6 @@ class core_course_external extends external_api {
|
|||
$newcategory = new stdClass();
|
||||
$newcategory->name = $category['name'];
|
||||
$newcategory->parent = $category['parent'];
|
||||
$newcategory->sortorder = 999; // Same as in the course/editcategory.php .
|
||||
// Format the description.
|
||||
if (!empty($category['description'])) {
|
||||
$newcategory->description = $category['description'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue