Skip to content

Commit

Permalink
26169: Multilinguality gets partially lost while copying course
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Nov 10, 2024
1 parent 8d9bec3 commit 5901b3d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/ILIAS/Course/classes/class.ilCourseXMLParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,14 @@ public function handlerEndTag($a_xml_parser, string $a_name): void
$this->course_obj->MDUpdateListener('General');
$this->adv_md_handler->save();
}
// see #26169
$transl = ilObjectTranslation::getInstance($this->course_obj->getId());
if ($transl->getDefaultTitle() !== "") {
$this->course_obj->setTitle($transl->getDefaultTitle());
}
if ($transl->getDefaultDescription() !== "") {
$this->course_obj->setDescription($transl->getDefaultDescription());
}
$this->course_obj->update();
break;

Expand Down

0 comments on commit 5901b3d

Please sign in to comment.