Skip to content
Snippets Groups Projects
Commit 8cacbaae authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix another error on studygroup details page, fixes #4622

Closes #4622

Merge request studip/studip!3434
parent c8cf1551
No related branches found
No related tags found
No related merge requests found
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
<dt><?= _('Moderiert von') ?></dt> <dt><?= _('Moderiert von') ?></dt>
<dd> <dd>
<ul class="list-csv"> <ul class="list-csv">
<? foreach ($studygroup->getMembers(['dozent', 'tutor']) as $mod) : ?> <? foreach ($studygroup->getMembersWithStatus(['dozent', 'tutor']) as $mod) : ?>
<li> <li>
<a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $mod['username']]) ?>"> <a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $mod->username]) ?>">
<?= htmlready($mod['fullname']) ?> <?= htmlReady($mod->user->getFullName()) ?>
</a> </a>
</li> </li>
<? endforeach ?> <? endforeach ?>
......
...@@ -924,7 +924,7 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe ...@@ -924,7 +924,7 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe
* *
* @param String|Array $status the status to filter with * @param String|Array $status the status to filter with
* @param bool $as_collection return collection instead of array? * @param bool $as_collection return collection instead of array?
* @return Array|SimpleCollection an array of all those members. * @return CourseMember[]|SimpleCollection an array of all those members.
*/ */
public function getMembersWithStatus($status, $as_collection = false) public function getMembersWithStatus($status, $as_collection = false)
{ {
......
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