Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions client/src/com/mirth/connect/client/ui/SortableTreeTable.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
/*
* Copyright (c) Mirth Corporation. All rights reserved.
*
* http://www.mirthcorp.com
*
* The software in this package is published under the terms of the MPL license a copy of which has
* been included with this distribution in the LICENSE.txt file.
*/
// SPDX-License-Identifier: MPL-2.0
// SPDX-FileCopyrightText: Mirth Corporation
// SPDX-FileCopyrightText: 2026 Tony Germano <[email protected]>

package com.mirth.connect.client.ui;

Expand Down Expand Up @@ -135,6 +130,18 @@ public void setSortOrder(int columnIndex, SortOrder sortOrder) {
sortModel.setSortOptions(sortModel.getColumnName(columnIndex), order);
}

// This fixes a bug in the super implementation where isHierarchical(int) can be
// called when editingColumn has a value of -1, which causes an exception to be
// thrown.
@Override
public int getEditingRow() {
if (editingRow == -1 || editingColumn == -1 || isHierarchical(editingColumn)) {
return -1;
} else {
return editingRow;
}
}

// ======================================================= private methods

private void getSortParams() {
Expand All @@ -145,4 +152,4 @@ private void getSortParams() {
sortColumn = sortModel.getSortColumnIndex();
}

}
}
Loading