Skip to content

Commit

Permalink
Fix selection of users of dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Nov 6, 2022
1 parent 383bb34 commit 8cf34ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website_code/scripts/xapi_dashboard_data.js
Expand Up @@ -209,9 +209,9 @@ DashboardState.prototype.getStatementsAggregate = function(q, one, callback) {
}
if (role == "Teacher") {
matchActor = '{"statement.actor.mbox" : { "$in": [';
this.data.info.users.forEach(function (user,i){
this.info.users.forEach(function (user,i){
matchActor += '"mailto:' + user.email + '"';
if (i < this.data.info.users.length - 1)
if (i < this.info.users.length - 1)
{
matchActor += ', ';
}
Expand Down Expand Up @@ -318,9 +318,9 @@ DashboardState.prototype.retrieveDataThroughAggregate = function(q, dashboard_st
}
if (role == "Teacher") {
matchActor = '{"statement.actor.mbox" : { "$in": [';
this.data.info.users.forEach(function (user,i){
this.info.users.forEach(function (user,i){
matchActor += '"mailto:' + user.email + '"';
if (i < this.data.info.users.length - 1)
if (i < this.info.users.length - 1)
{
matchActor += ', ';
}
Expand Down

0 comments on commit 8cf34ee

Please sign in to comment.