Skip to content

Commit f843046

Browse files
authored
Use EffectiveAuditBehavior (#1021)
1 parent 264bb36 commit f843046

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ehr/api-src/org/labkey/api/ehr/SharedEHRUpgradeCode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ private void importFile(TsvImport tsvImport, Container container, User user) thr
317317
updateService.truncateRows(user, container, null, null);
318318

319319
BatchValidationException errors = new BatchValidationException();
320-
AuditBehaviorType behaviorType = table.getAuditBehavior();
320+
AuditBehaviorType behaviorType = table.getEffectiveAuditBehavior();
321321
TransactionAuditProvider.TransactionAuditEvent auditEvent = null;
322322
if (behaviorType != null && behaviorType != AuditBehaviorType.NONE)
323323
auditEvent = createTransactionAuditEvent(container, QueryService.AuditAction.INSERT);

ehr/src/org/labkey/ehr/EHRController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ private void loadFile(UserSchema schema, String tableName, Resource resource, bo
14991499
DataLoader loader = DataLoader.get().createLoader(resource, true, null, TabLoader.TSV_FILE_TYPE);
15001500

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

16701670
BatchValidationException batchErrors = new BatchValidationException();
1671-
AuditBehaviorType behaviorType = table.getAuditBehavior();
1671+
AuditBehaviorType behaviorType = table.getEffectiveAuditBehavior();
16721672
TransactionAuditProvider.TransactionAuditEvent auditEvent = null;
16731673
if (behaviorType != null && behaviorType != AuditBehaviorType.NONE)
16741674
auditEvent = createTransactionAuditEvent(getContainer(), QueryService.AuditAction.INSERT);

0 commit comments

Comments
 (0)