Recently, our team updated DHIS2 to v2.42.6 but there was an issue found when using Maintenance App → Organisation Unit search input: the organisation unit to be search is not found even though it exist and is assigned to user (selected under its data capture and maintenance section in Users App).
The issue seems to be happening by the endpoint: /api/organisationUnits?withinUserHierarchy=true&query=Country&fields=id,displayName&paging=false where withinUserHierarchy=true is returning empty everytime.
Welcome back to the community! Thank you for taking the time to research the issue and providing the PR. In short, the PR is in the dhis2-core which means that this will require a DHIS2 instance upgrade.
@Gassim thanks for the support and taking the time sharing the explainer.
Daily operation with system is not blocked by this defect as the organisation unit tree can be used to manually search (this become a little bit complicated when many levels as well as organisation units are too big).
Is a release version already deployed with the fix? (Thinking about v2.46.7+).