diff options
| author | Thomas Hackl <hackl@data-quest.de> | 2022-06-21 14:33:44 +0000 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2022-06-21 14:33:44 +0000 |
| commit | 4b468ca58b1e648a61b7859774b2738a5d62b1ff (patch) | |
| tree | 277b99f02683d8813f7dc127d452e6be50cfa21f /lib/export | |
| parent | 7c8f8d732964b5661fa2f0321821d653951bc2f4 (diff) | |
Resolve "Export der Teilnehmerliste: Call to a member function getClass() on null"
Closes #1192
Merge request studip/studip!706
Diffstat (limited to 'lib/export')
| -rw-r--r-- | lib/export/export_studipdata_func.inc.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/export/export_studipdata_func.inc.php b/lib/export/export_studipdata_func.inc.php index 360e068..32f61ef 100644 --- a/lib/export/export_studipdata_func.inc.php +++ b/lib/export/export_studipdata_func.inc.php @@ -579,12 +579,14 @@ function export_teilis($inst_id, $ex_sem_id = "no") } else { if (!in_array($filter, words('awaiting claiming'))) { + $course = Course::find($range_id); + $gruppe = [ - 'dozent' => get_title_for_status('dozent', 2), - 'tutor' => get_title_for_status('tutor', 2), - 'autor' => get_title_for_status('autor', 2), - 'user' => get_title_for_status('user', 2), - 'accepted' => get_title_for_status('accepted', 2) + 'dozent' => get_title_for_status('dozent', 2, $course->status), + 'tutor' => get_title_for_status('tutor', 2, $course->status), + 'autor' => get_title_for_status('autor', 2, $course->status), + 'user' => get_title_for_status('user', 2, $course->status), + 'accepted' => get_title_for_status('accepted', 2, $course->status) ]; } else { $gruppe[$filter] = _('Anmeldeliste'); |
