Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(search): Files for participant linking.
Browse files Browse the repository at this point in the history
- When clicking files link for participants it would incorrectly
  link and not return the participant.

Closes #571
  • Loading branch information
Matthew Schranz committed Mar 16, 2015
1 parent b6407bf commit 992dd70
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/scripts/search/search.participants.table.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,9 @@ module ngApp.search.models {
return field && field.val && field.val.length;
},
sref: function(field, row, scope, $filter) {
var files = _.find(row, (item) => {
var fileIds = _.map(_.find(row, (item) => {
return item.id === "files";
});
var fileIds = _.map(files.val, (file: any) => {
}).val, (file: any) => {
return file.file_id;
});

Expand All @@ -150,7 +149,6 @@ module ngApp.search.models {
}).val;

var filter = $filter("makeFilter")([
{name: 'file_id', value: fileIds},
{name: "participants.participant_id", value: uuid}
]);
return {
Expand Down

0 comments on commit 992dd70

Please sign in to comment.