Skip to content

Commit

Permalink
Update assignment matching
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-martyp committed Sep 23, 2024
1 parent 465f628 commit 11e7532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nirc_ehr/resources/queries/study/assignment.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ EHR.Server.TriggerManager.registerHandlerForQuery(EHR.Server.TriggerManager.Even
}


var projectName = row.projectName.split(' ')[0];
var projectName = row.projectName.split(' ' + row.Id)[0];
var projectId = projectData[projectName];
if (!projectId) {
var projectNames = Object.keys(projectData);
for (var i = 0; i < projectNames.length; i++) {

var pName = projectNames[i];
if (pName.toString().indexOf(projectName) === 0) {
if (pName == projectName) {
projectId = projectData[projectNames[i]];
}
}
Expand Down

0 comments on commit 11e7532

Please sign in to comment.