Skip to content

Commit b4c9596

Browse files
committed
Consider HTO when finding matched sorts
1 parent d5b1363 commit b4c9596

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

singlecell/resources/web/singlecell/panel/PoolImportPanel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ Ext4.define('SingleCell.panel.PoolImportPanel', {
553553
tissue: r.tissue,
554554
objectId: r.objectId,
555555
population: r.population,
556+
hto: r.hto,
556557
workbook: r.workbook
557558
});
558559
}, this);

singlecell/src/org/labkey/singlecell/SingleCellController.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,15 @@ public Object execute(SimpleApiJsonForm form, BindException errors) throws Excep
393393
{
394394
SimpleFilter sortFilter = new SimpleFilter(FieldKey.fromString("sampleId"), rowId);
395395
sortFilter.addCondition(FieldKey.fromString("population"), r.get("population"));
396+
if (r.get("hto") == null)
397+
{
398+
sortFilter.addCondition(FieldKey.fromString("hto"), null, CompareType.ISBLANK);
399+
}
400+
else
401+
{
402+
sortFilter.addCondition(FieldKey.fromString("hto"), r.get("hto"));
403+
}
404+
396405
TableSelector tsSort = new TableSelector(tiSort, PageFlowUtil.set("rowId"), sortFilter, null);
397406
long countSort = tsSort.getRowCount();
398407
if (countSort == 1)

0 commit comments

Comments
 (0)