Moodle

Participant List shows all Course-Creators

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.7
  • Fix Version/s: None
  • Component/s: Course
  • Labels:
    None
  • Environment:
    1.7 on Linux/Apache
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_17_STABLE

Description

A participant list on course level shows all course creators on site-level, even when they have never accessed the course.

A solution maybe:
user/index.php, Line 348, set "OR ul.courseid IS NOT NULL" instead of "OR ul.courseid IS NULL"

$where = "WHERE (r.contextid = $context->id OR r.contextid in $listofcontexts)
AND u.deleted = 0 $selectrole
AND (ul.courseid = $course->id OR ul.courseid IS NOT NULL)
AND u.username <> 'guest' ";
$where .= get_lastaccess_sql($accesssince);

Activity

Hide
Yu Zhang added a comment -

Hi,

They should still show up as course creators regardless of whether they have accessed the course or not. However, if you do not want them to show up you can use the hidden role assignment function (in 1.8).

Cheers,

Yu

Show
Yu Zhang added a comment - Hi, They should still show up as course creators regardless of whether they have accessed the course or not. However, if you do not want them to show up you can use the hidden role assignment function (in 1.8). Cheers, Yu
Hide
Samuli Karevaara added a comment -

Still a very odd default to show the course creators in the course participants list! Just a minute ago a teacher was puzzled about this: "why are these people as participants in my course, I just added the course, it should be pretty empty..."

Could you change it so that the course creators are not shown in the participants list as default?

Also, how can I switch the course creators to be hidden as I already have them assigned?

Show
Samuli Karevaara added a comment - Still a very odd default to show the course creators in the course participants list! Just a minute ago a teacher was puzzled about this: "why are these people as participants in my course, I just added the course, it should be pretty empty..." Could you change it so that the course creators are not shown in the participants list as default? Also, how can I switch the course creators to be hidden as I already have them assigned?
Hide
Samuli Karevaara added a comment -

Also, they are shown as participants of the course to all students. What is the rationale to list course creators as participants in every course?

Show
Samuli Karevaara added a comment - Also, they are shown as participants of the course to all students. What is the rationale to list course creators as participants in every course?
Hide
John Isner added a comment -

This issue is marked "closed" and the resolution is marked "Fixed" but the fix version is marked None. Was it considered to be "Not a bug?" (as Yu Zhang's comment would seem to indicate)?

Show
John Isner added a comment - This issue is marked "closed" and the resolution is marked "Fixed" but the fix version is marked None. Was it considered to be "Not a bug?" (as Yu Zhang's comment would seem to indicate)?

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: