Skip to content

Commit 47db1ae

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

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
@@ -1142,6 +1142,14 @@ public function downloadObject(): void
11421142
}
11431143
}
11441144

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

lang/ilias_de.lang

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6071,6 +6071,7 @@ cont#:#cont_news_timeline_landing_page#:#Startseite
60716071
cont#:#cont_news_timeline_landing_page_info#:#Timeline als Startseite
60726072
cont#:#cont_news_timeline_tab#:#Timeline
60736073
cont#:#cont_no_title#:#Leerer Titel
6074+
cont#:#cont_only_crs_grp_fold_download#:#Es können nur Dateien, Kurse, Gruppen oder Ordner heruntergeladen werden.
60746075
cont#:#cont_page_type_cont#:#Magazinseite (Kurs, Gruppe, Kategorie, ...)
60756076
cont#:#cont_page_type_cstr#:#Startseite lernzielorientierter Kurs
60766077
cont#:#cont_path#:#Pfad

lang/ilias_en.lang

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6073,6 +6073,7 @@ cont#:#cont_news_timeline_landing_page#:#Landing Page
60736073
cont#:#cont_news_timeline_landing_page_info#:#Timeline page will be the landing page.
60746074
cont#:#cont_news_timeline_tab#:#Timeline
60756075
cont#:#cont_no_title#:#Empty Title
6076+
cont#:#cont_only_crs_grp_fold_download#:#Only courses, groups, folders or files can be downloaded.
60766077
cont#:#cont_page_type_cont#:#Repository Page (Cours, Group, ...)
60776078
cont#:#cont_page_type_cstr#:#Course Start Page (Learning Objectives View)
60786079
cont#:#cont_path#:#Path

0 commit comments

Comments
 (0)