Skip to content
Snippets Groups Projects
Commit dee03e51 authored by Moritz Strohm's avatar Moritz Strohm Committed by David Siegfried
Browse files

CourseDateFolder: added topic titles to folder name, closes TIC #1393

Closes #1393

Merge request studip/studip!846
parent 3210f8de
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,9 @@ class CourseDateFolder extends PermissionEnabledFolder implements FolderType
}
if ($this->date) {
$this->folderdata['name'] = self::formatDate($this->date);
if (count($this->date->topics)) {
$this->folderdata['name'] .= ' (' . join(', ', $this->date->topics->pluck('title')) . ')';
}
} else {
$this->folderdata['name'] = _('(Termin gelöscht)') . ' ' . $this->folderdata['name'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment