Skip to content

Commit 60898fa

Browse files
committed
Fix reclassify
1 parent 312a13c commit 60898fa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

experiment/src/org/labkey/experiment/ExpDataIterators.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2482,11 +2482,14 @@ public DataIterator getDataIterator(DataIteratorContext context)
24822482
.setCommitRowsBeforeContinuing(true)
24832483
.setFailOnEmptyUpdate(false));
24842484

2485+
// Biologics reclassify uses afterUpdate to update other data that depend on the completion of update of the triggering data
2486+
boolean shouldCommitRowsBeforeContinuing = colNameMap.containsKey(".reclassify");
24852487
// pass in remap columns to help reconcile columns that may be aliased in the virtual table
24862488
dib = LoggingDataIterator.wrap(new TableInsertDataIteratorBuilder(dib, _propertiesTable, _container)
24872489
.setKeyColumns(propertyKeyColumns)
24882490
.setDontUpdate(dontUpdate)
24892491
.setRemapSchemaColumns(((UpdateableTableInfo) _expTable).remapSchemaColumns())
2492+
.setCommitRowsBeforeContinuing(shouldCommitRowsBeforeContinuing)
24902493
.setFailOnEmptyUpdate(false));
24912494

24922495
if (colNameMap.containsKey(Flag.name()) || colNameMap.containsKey("comment"))

0 commit comments

Comments
 (0)