Skip to content
Snippets Groups Projects
Commit c4e03b99 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "Ankündigungen Bereichsauswähler zeigt [object Object]"

Closes #1158

Merge request studip/studip!690
parent 21e0793a
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ class NewsRangesInput extends Input ...@@ -59,7 +59,7 @@ class NewsRangesInput extends Input
foreach (\Institute::getMyInstitutes() as $institut) { foreach (\Institute::getMyInstitutes() as $institut) {
$inst_options[] = [ $inst_options[] = [
'value' => $institut['Institut_id'] . '__institute', 'value' => $institut['Institut_id'] . '__institute',
'name' => $institut['Name'], 'name' => (string) $institut['Name'],
]; ];
} }
if (count($inst_options)) { if (count($inst_options)) {
...@@ -73,7 +73,7 @@ class NewsRangesInput extends Input ...@@ -73,7 +73,7 @@ class NewsRangesInput extends Input
foreach (\Course::findByUser(\User::findCurrent()->id) as $course) { foreach (\Course::findByUser(\User::findCurrent()->id) as $course) {
$course_options[] = [ $course_options[] = [
'value' => $course->getId()."__seminar", 'value' => $course->getId()."__seminar",
'name' => $course['name'] 'name' => (string) $course['name']
]; ];
} }
if (count($course_options)) { if (count($course_options)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment