Skip to content
Snippets Groups Projects
Commit c8fb74b0 authored by Hermann's avatar Hermann
Browse files

fix id filtering in user view tables

parent f404d93b
No related branches found
No related tags found
No related merge requests found
...@@ -10,12 +10,12 @@ export default class UserView extends ItemView { ...@@ -10,12 +10,12 @@ export default class UserView extends ItemView {
super(vnode); super(vnode);
// a controller to handle the groupmemberships of this user // a controller to handle the groupmemberships of this user
this.groupmemberships = new DatalistController('groupmemberships', { this.groupmemberships = new DatalistController('groupmemberships', {
where: { user: this.id }, where: { user: this.data._id },
embedded: { group: 1 }, embedded: { group: 1 },
}); });
// a controller to handle the eventsignups of this user // a controller to handle the eventsignups of this user
this.eventsignups = new DatalistController('eventsignups', { this.eventsignups = new DatalistController('eventsignups', {
where: { user: this.id }, where: { user: this.data._id },
embedded: { event: 1 }, embedded: { event: 1 },
}); });
// initially, don't display the choice field for a new group // initially, don't display the choice field for a new group
......
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