mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL-28705_master' of git://github.com/dmonllao/moodle
This commit is contained in:
commit
a85d61e812
@ -276,12 +276,6 @@ class enrol_imsenterprise_testcase extends advanced_testcase {
|
||||
if (!empty($courses)) {
|
||||
foreach ($courses as $course) {
|
||||
|
||||
// orgunit tag value is used by moodle as category name.
|
||||
// If the category does not exists the id is used as name.
|
||||
if ($categoryname = $DB->get_field('course_categories', 'name', array('id' => $course->category))) {
|
||||
$categoryname = $course->category;
|
||||
}
|
||||
|
||||
$xmlcontent .= '
|
||||
<group>
|
||||
<sourcedid>
|
||||
@ -308,10 +302,11 @@ class enrol_imsenterprise_testcase extends advanced_testcase {
|
||||
<full>'.$course->imsfull.'</full>';
|
||||
}
|
||||
|
||||
// orgunit tag value is used by moodle as category name.
|
||||
$xmlcontent .= '
|
||||
</description>
|
||||
<org>
|
||||
<orgunit>'.$categoryname.'</orgunit>
|
||||
<orgunit>'.$course->category.'</orgunit>
|
||||
</org>
|
||||
</group>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user