diff options
| author | Arne Schröder, M. A. <schroeder@data-quest.de> | 2026-02-10 13:54:11 +0000 |
|---|---|---|
| committer | Rasmus Fuhse <fuhse@data-quest.de> | 2026-02-10 13:54:11 +0000 |
| commit | 6aa14641c923d96fecbf7394c7ddf15d06bb9cd3 (patch) | |
| tree | 1168a8840ccf152406badafa0c1491308428f5b9 /app/controllers/course | |
| parent | 85aeda74a7a5761c30bb16cdf84199689b934b7f (diff) | |
Resolve "ILIAS-Schnittstelle: Deselektieren von Modulen im Admin-Dialog wird nicht gespeichert"
Closes #6238
Merge request studip/studip!4719
Diffstat (limited to 'app/controllers/course')
| -rw-r--r-- | app/controllers/course/ilias_interface.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/course/ilias_interface.php b/app/controllers/course/ilias_interface.php index c0c8b02..c631790 100644 --- a/app/controllers/course/ilias_interface.php +++ b/app/controllers/course/ilias_interface.php @@ -89,13 +89,13 @@ class Course_IliasInterfaceController extends AuthenticatedController if (($this->module_count == 0) && (!$this->courses)) { if (Context::isInstitute()) { - if ($this->ilias_interface_config['create_objects']) { + if (!empty($this->ilias_interface_config['create_objects'])) { PageLayout::postInfo(_('Momentan sind dieser Einrichtung keine Lernobjekte zugeordnet.')); } else { PageLayout::postInfo(_('Momentan sind dieser Einrichtung keine ILIAS-Kurse zugeordnet.')); } } else { - if ($this->ilias_interface_config['create_objects']) { + if (!empty($this->ilias_interface_config['create_objects'])) { PageLayout::postInfo(_('Momentan sind dieser Veranstaltung keine Lernobjekte zugeordnet.')); } else { PageLayout::postInfo(_('Momentan ist dieser Veranstaltung kein ILIAS-Kurs zugeordnet.')); @@ -113,7 +113,7 @@ class Course_IliasInterfaceController extends AuthenticatedController Icon::create('add') )->asDialog(); } - if ($this->author_permission && $this->ilias_interface_config['create_objects']) { + if ($this->author_permission && !empty($this->ilias_interface_config['create_objects']) && !empty($this->ilias_interface_config['create_category'])) { $widget->addLink( _('Meine Lernobjekte'), $this->url_for('course/ilias_interface/add_object/my_modules'), @@ -249,7 +249,7 @@ class Course_IliasInterfaceController extends AuthenticatedController */ public function add_object_action($mode = 'search', $index = '') { - if ($this->ilias_interface_config['create_objects']) { + if (!empty($this->ilias_interface_config['create_objects'])) { PageLayout::setTitle(_('Lernobjekt hinzufügen')); } else { PageLayout::setTitle(_('Neuen ILIAS-Kurs anlegen')); |
