Skip to content

Commit 9af6b86

Browse files
committed
Fix for JSONObject migration
1 parent cc52a84 commit 9af6b86

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

SequenceAnalysis/resources/web/SequenceAnalysis/panel/SequenceImportPanel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2422,6 +2422,7 @@ Ext4.define('SequenceAnalysis.panel.SequenceImportPanel', {
24222422
sequencePanel: this,
24232423
targetGrid: grid,
24242424
readsetStore: this.readsetStore,
2425+
modal: true,
24252426
title: 'Infer Readset Id',
24262427
bodyStyle: 'padding: 5px;',
24272428
width: 500,

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/SequencePipelineSettings.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ public SequenceReadsetImpl createReadsetModel(JSONObject o)
192192
model.setLibraryType(o.optString("librarytype"));
193193
model.setName(o.optString("readsetname"));
194194
if (StringUtils.trimToNull(o.optString("readset")) != null)
195-
model.setRowId(getInt(o.getString("readset")));
195+
{
196+
model.setRowId(getInt(o.get("readset")));
197+
}
196198

197199
if (StringUtils.trimToNull(o.optString("instrument_run_id")) != null)
198200
{
@@ -275,7 +277,7 @@ private File resolveFile(JSONObject json, @Nullable SequenceJob job, boolean all
275277
return null;
276278
}
277279

278-
private Integer getInt(String v)
280+
private Integer getInt(Object v)
279281
{
280282
return ConvertHelper.convert(v, Integer.class);
281283
}

0 commit comments

Comments
 (0)