Skip to content

Commit

Permalink
StudyProgramme: fix internal links in custom md (28060)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmitz-ilias authored and klees committed Dec 4, 2023
1 parent c901c61 commit 3fde68e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion Modules/StudyProgramme/classes/class.ilObjStudyProgrammeGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjectTranslationGUI
* @ilCtrl_Calls ilObjStudyProgrammeGUI: ilCertificateGUI
* @ilCtrl_Calls ilObjStudyProgrammeGUI: ilObjStudyProgrammeAutoCategoriesGUI
* @ilCtrl_Calls ilObjStudyProgrammeGUI: ilPropertyFormGUI
*/
class ilObjStudyProgrammeGUI extends ilContainerGUI
{
Expand Down Expand Up @@ -229,7 +230,24 @@ public function executeCommand(): void
$output_gui = $guiFactory->create($this->object);
$this->ctrl->forwardCommand($output_gui);
break;

case strtolower(ilPropertyFormGUI::class):
/*
* Only used for async loading of the repository tree in custom md
* internal links (see #28060, #37974). This is necessary since StudyProgrammes don't
* use ilObjectMetaDataGUI.
*/
$form = $this->initAdvancedSettingsForm();
$gui = new ilAdvancedMDRecordGUI(
ilAdvancedMDRecordGUI::MODE_EDITOR,
'prg',
$this->object->getId(),
'prg_type',
$this->object->getSettings()->getTypeSettings()->getTypeId()
);
$gui->setPropertyForm($form);
$gui->parse();
$this->ctrl->forwardCommand($form);
break;
case false:
$this->getSubTabs($cmd);
switch ($cmd) {
Expand Down

0 comments on commit 3fde68e

Please sign in to comment.