Skip to content

Commit e6aaa48

Browse files
committed
43203: mehrere Kategorien können nicht gleichzeitig als ZIP.File heruntergeladen werden
1 parent b3ae5ee commit e6aaa48

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

components/ILIAS/Container/classes/class.ilContainerGUI.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,14 @@ public function downloadObject(): void
11411141
}
11421142
}
11431143

1144+
foreach ($ids as $ref_id) {
1145+
if (!in_array(ilObject::_lookupType($ref_id, true), ["crs", "grp", "fold", "file"])) {
1146+
$this->lng->loadLanguageModule("cont");
1147+
$this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_only_crs_grp_fold_download"), true);
1148+
$this->ctrl->redirect($this, "");
1149+
}
1150+
}
1151+
11441152
$download_job = new ilDownloadContainerFilesBackgroundTask(
11451153
$GLOBALS['DIC']->user()->getId(),
11461154
$ids,

lang/ilias_de.lang

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6117,6 +6117,7 @@ cont#:#cont_news_timeline_landing_page#:#Startseite
61176117
cont#:#cont_news_timeline_landing_page_info#:#Timeline als Startseite
61186118
cont#:#cont_news_timeline_tab#:#Timeline
61196119
cont#:#cont_no_title#:#Leerer Titel
6120+
cont#:#cont_only_crs_grp_fold_download#:#Es können nur Dateien, Kurse, Gruppen oder Ordner heruntergeladen werden.
61206121
cont#:#cont_page_type_cont#:#Magazinseite (Kurs, Gruppe, Kategorie, ...)
61216122
cont#:#cont_page_type_cstr#:#Startseite lernzielorientierter Kurs
61226123
cont#:#cont_path#:#Pfad

lang/ilias_en.lang

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6118,6 +6118,7 @@ cont#:#cont_news_timeline_landing_page#:#Landing Page
61186118
cont#:#cont_news_timeline_landing_page_info#:#Timeline page will be the landing page.
61196119
cont#:#cont_news_timeline_tab#:#Timeline
61206120
cont#:#cont_no_title#:#Empty Title
6121+
cont#:#cont_only_crs_grp_fold_download#:#Only courses, groups, folders or files can be downloaded.
61216122
cont#:#cont_page_type_cont#:#Repository Page (Cours, Group, ...)
61226123
cont#:#cont_page_type_cstr#:#Course Start Page (Learning Objectives View)
61236124
cont#:#cont_path#:#Path

0 commit comments

Comments
 (0)