Skip to content

fix: orgUnitField default [DHIS2-21560]#949

Merged
tomzemp merged 4 commits into
masterfrom
DHIS2-21560/program-indicator-orgUnitField
Jun 1, 2026
Merged

fix: orgUnitField default [DHIS2-21560]#949
tomzemp merged 4 commits into
masterfrom
DHIS2-21560/program-indicator-orgUnitField

Conversation

@tomzemp
Copy link
Copy Markdown
Member

@tomzemp tomzemp commented May 26, 2026

See https://dhis2.atlassian.net/browse/DHIS2-21560

This PR makes the 'Event organisation unit default' orgUnitField option correspond to null/''.

Because of our logic on the single select field (no label is shown when there is no value) I have implemented a slightly hacky solution that shows the label as a placeholder when there is no value*:

image

In addition, as specified in the ticket, if you open a program indicator with orgUnitField:EVENT, this will be mapped to orgUnitField:null on save.

  • does not apply with tracker program, and data source is enrolment as there is an enrolment default option (which is distinct from null)

@tomzemp tomzemp requested a review from a team May 26, 2026 14:37
@netlify
Copy link
Copy Markdown

netlify Bot commented May 26, 2026

Deploy Preview for dhis2-maintenance-app-beta ready!

Name Link
🔨 Latest commit 2cdaca7
🔍 Latest deploy log https://app.netlify.com/projects/dhis2-maintenance-app-beta/deploys/6a1d39b827e7390008ad2ef2
😎 Deploy Preview https://deploy-preview-949.maintenance-app-beta.netlify.dhis2.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 1, 2026

@tomzemp tomzemp merged commit dc53847 into master Jun 1, 2026
10 checks passed
@tomzemp tomzemp deleted the DHIS2-21560/program-indicator-orgUnitField branch June 1, 2026 09:24
dhis2-bot added a commit that referenced this pull request Jun 1, 2026
## [0.159.2](v0.159.1...v0.159.2) (2026-06-01)

### Bug Fixes

* orgUnitField default [DHIS2-21560] ([#949](#949)) ([dc53847](dc53847))
@dhis2-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.159.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants