From fcf3e9e737cd6dff6ee4ea112a0ed4b809a48ebf Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Thu, 6 Jul 2023 13:24:16 +0200 Subject: [PATCH] fix: org unit search logic [DHIS2-14585] (#1217) --- .../AsyncAutoComplete/useOrgUnitSearchResults.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SearchableOrgUnitTree/AsyncAutoComplete/useOrgUnitSearchResults.js b/src/components/SearchableOrgUnitTree/AsyncAutoComplete/useOrgUnitSearchResults.js index ef408e959..85ea9e0dc 100644 --- a/src/components/SearchableOrgUnitTree/AsyncAutoComplete/useOrgUnitSearchResults.js +++ b/src/components/SearchableOrgUnitTree/AsyncAutoComplete/useOrgUnitSearchResults.js @@ -16,7 +16,7 @@ const query = { 'children::isNotEmpty', 'ancestors', ], - filter: `name:$ilike:${searchText}`, + filter: `displayName:ilike:${searchText}`, paging: true, pageSize: PAGE_SIZE, }),