about mdl_role_assignments

about mdl_role_assignments

дэргэд Chirag Patel -
Хариу нийтлэлийн тоо: 7

hey guys I have question about mdl_roel_assignments\

That it has two lines

When you download it and open it in excel

then line 2 and 5

It shows that same user has been gievn same role 3(student).

Means same user has been given student role two times,

How that popssible?

Үнэлгээний дундаж: -
Chirag Patel-н хариуд

Re: about mdl_role_assignments

дэргэд Paul Holden -
Core developers зураг Moodle HQ зураг Moodle Workplace team зураг Particularly helpful Moodlers зураг Peer reviewers зураг Plugin developers зураг Testers зураг

They're assigned in different contexts.

Paul Holden-н хариуд

Re: about mdl_role_assignments

дэргэд Chirag Patel -

Thanks after posting I realized it,but now i have another question

I am constructin one query

which gives me number of count that each student has viewed course!

can you help me with this!!!1

Chirag Patel-н хариуд

Re: about mdl_role_assignments

дэргэд David Mudrák -
Core developers зураг Documentation writers зураг Moodle HQ зураг Particularly helpful Moodlers зураг Peer reviewers зураг Plugin developers зураг Plugins guardians зураг Testers зураг Translators зураг
Also, IIRC the same role can be provided by multiple enrolment plugins - see the column "component".
David Mudrák-н хариуд

Re: about mdl_role_assignments

дэргэд Chirag Patel -

he david can you help me with ADMIN variable and its properties,Because in moodle course  it is not explained!!!I am also working on query but now i want this help!!

David Mudrák-н хариуд

Re: about mdl_role_assignments

дэргэд Blair F. -
Particularly helpful Moodlers зураг

I came across this post after posting my own question here:

https://moodle.org/mod/forum/discuss.php?d=329638

In my case, there are multiple rows of the same contextid and there's no component entry, at all. I don't understand.  I've got some students in a course that have 11, 12, even 15 records that all appear to have the same data.