Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ehr/api-src/org/labkey/api/ehr/SharedEHRUpgradeCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private void importFile(TsvImport tsvImport, Container container, User user) thr
updateService.truncateRows(user, container, null, null);

BatchValidationException errors = new BatchValidationException();
AuditBehaviorType behaviorType = table.getAuditBehavior();
AuditBehaviorType behaviorType = table.getEffectiveAuditBehavior();
TransactionAuditProvider.TransactionAuditEvent auditEvent = null;
if (behaviorType != null && behaviorType != AuditBehaviorType.NONE)
auditEvent = createTransactionAuditEvent(container, QueryService.AuditAction.INSERT);
Expand Down
4 changes: 2 additions & 2 deletions ehr/src/org/labkey/ehr/EHRController.java
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ private void loadFile(UserSchema schema, String tableName, Resource resource, bo
DataLoader loader = DataLoader.get().createLoader(resource, true, null, TabLoader.TSV_FILE_TYPE);

BatchValidationException batchErrors = new BatchValidationException();
AuditBehaviorType behaviorType = table.getAuditBehavior();
AuditBehaviorType behaviorType = table.getEffectiveAuditBehavior();
TransactionAuditProvider.TransactionAuditEvent auditEvent = null;
if (behaviorType != null && behaviorType != AuditBehaviorType.NONE)
auditEvent = createTransactionAuditEvent(getContainer(), QueryService.AuditAction.INSERT);
Expand Down Expand Up @@ -1668,7 +1668,7 @@ public Object execute(PopulateLookupsForm form, BindException errors) throws Exc
DataLoader loader = DataLoader.get().createLoader(_reportsResource, true, null, TabLoader.TSV_FILE_TYPE);

BatchValidationException batchErrors = new BatchValidationException();
AuditBehaviorType behaviorType = table.getAuditBehavior();
AuditBehaviorType behaviorType = table.getEffectiveAuditBehavior();
TransactionAuditProvider.TransactionAuditEvent auditEvent = null;
if (behaviorType != null && behaviorType != AuditBehaviorType.NONE)
auditEvent = createTransactionAuditEvent(getContainer(), QueryService.AuditAction.INSERT);
Expand Down