From d37a87345d2371b6db16083a3e6526d4d3902fd6 Mon Sep 17 00:00:00 2001 From: Marty Pradere Date: Thu, 10 Sep 2026 06:29:57 -0600 Subject: [PATCH] GH Issue 1485: Fix Show Record History dataset filter The intkey1 legacy alias was removed along with the audit union table, so the dataset filter was silently dropped; datasetId is the current column. Also drops the Detailed view name, which no longer exists. --- ehr/resources/web/ehr/studyButtons.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ehr/resources/web/ehr/studyButtons.js b/ehr/resources/web/ehr/studyButtons.js index adfc6fb37..ecb9029de 100644 --- a/ehr/resources/web/ehr/studyButtons.js +++ b/ehr/resources/web/ehr/studyButtons.js @@ -139,8 +139,7 @@ EHR.DatasetButtons = new function () { var params = { schemaName: 'auditLog', 'query.queryName': 'DatasetAuditEvent', - 'query.viewName': 'Detailed', - 'query.intkey1~eq': row['Dataset/DataSetId'] + 'query.datasetId~eq': row['Dataset/DataSetId'] }; //NOTE: for demographics data, the objectId is not part of the LSID. therefore the best we can do is filter on Id, even though this might have changed over the life of the record.