Skip to content

Commit ad76f21

Browse files
ReferenceBlot and DataState fixes
1 parent 57c283d commit ad76f21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3182,11 +3182,11 @@ public boolean next() throws BatchValidationException
31823182
if (_oldSampleStateCol == null && getExistingRecord() == null)
31833183
return true;
31843184

3185-
Integer oldState;
3185+
Long oldState;
31863186
if (_oldSampleStateCol != null)
3187-
oldState = (Integer) get(_oldSampleStateCol);
3187+
oldState = asLong(get(_oldSampleStateCol));
31883188
else
3189-
oldState = (Integer) getExistingRecord().get(SampleState.name());
3189+
oldState = asLong(getExistingRecord().get(SampleState.name()));
31903190

31913191
if (oldState == null)
31923192
return true;
@@ -3202,7 +3202,7 @@ public boolean next() throws BatchValidationException
32023202
return true;
32033203
}
32043204

3205-
Integer newState = (Integer) get(_sampleStateCol);
3205+
Long newState = asLong(get(_sampleStateCol));
32063206
DataState newStatus = _allStates.get(newState);
32073207
boolean newAllowsOp = SampleStatusService.get().isOperationPermitted(newStatus, SampleTypeService.SampleOperations.EditMetadata);
32083208

0 commit comments

Comments
 (0)