Skip to content

Commit

Permalink
Merge pull request getodk#5797 from grzesiek2010/COLLECT-5796
Browse files Browse the repository at this point in the history
Fixed searching in the list of drafts
  • Loading branch information
grzesiek2010 authored and seadowg committed Oct 26, 2023
1 parent e8a74ad commit 3fd32e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ public CursorLoader createEditableInstancesCursorLoader(CharSequence charSequenc

cursorLoader = getInstancesCursorLoader(selection, selectionArgs, sortOrder);
} else {
String selection = DatabaseInstanceColumns.STATUS + " =? " +
String selection = "(" + DatabaseInstanceColumns.STATUS + "=? or " + DatabaseInstanceColumns.STATUS + "=? or " + DatabaseInstanceColumns.STATUS + "=?)" +
"and " + DatabaseInstanceColumns.DISPLAY_NAME + " LIKE ?";
String[] selectionArgs = {
Instance.STATUS_INCOMPLETE,
Instance.STATUS_INCOMPLETE, Instance.STATUS_INVALID, Instance.STATUS_VALID,
"%" + charSequence + "%"
};

Expand Down

0 comments on commit 3fd32e3

Please sign in to comment.