GithubHelp home page GithubHelp logo

Comments (4)

abias avatar abias commented on August 17, 2024

Hi Mario,

I added the fields to the get_role_users() function call for 2.8 compatibility. In our installation, the teacher filter works with this code without debug messages and other errors.

Could you please describe why u.id should be added..? Does the filter fail in your installation or do you see performance problems with the current code?

Thanks,
Alex

from moodle-block_course_overview_campus.

mwehr avatar mwehr commented on August 17, 2024

Hi Alex,

The teacher filter works without failing. Sometimes the generated list shows multiple entries of the same name.
I become aware of this because one of my collegues asked me why his name was listed multiple times in the teacher filter. What I've seen so far is that the multiple listing of the same name occurs because of ra.id is later used for the user.id at line 452
ra.id changes per context and it looks like that for every course where the user has a teacher role we get a new ra.id -> user.id which results in a new list entry in the teacher filter.

regards,

Mario

from moodle-block_course_overview_campus.

abias avatar abias commented on August 17, 2024

Hi Mario,

now I see what's the problem. I could reproduce the bug and added the column to the function call as you proposed in commit 1cfbee7.

Thanks for reporting,
Alex

from moodle-block_course_overview_campus.

mwehr avatar mwehr commented on August 17, 2024

Perfect!
,... and thx for the credits :-)
Mario

from moodle-block_course_overview_campus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.