Skip to content

fix: make name and code unique for option#871

Open
tomzemp wants to merge 2 commits intodevfrom
DHIS2-21069-optionName
Open

fix: make name and code unique for option#871
tomzemp wants to merge 2 commits intodevfrom
DHIS2-21069-optionName

Conversation

@tomzemp
Copy link
Copy Markdown
Member

@tomzemp tomzemp commented Apr 13, 2026

This change makes the name field also apply a mandatory check for name uniqueness.

Additionally, I've simplified the logic for the option field check to perform the check with an api filter (rather than a manual check based on form values). I originally used form values, because I thought this would be better for checking the actual state, but since options get created/persisted when option is saved, it's more efficient to just use the api filter.

@sonarqubecloud
Copy link
Copy Markdown

@Chisomchima Chisomchima self-requested a review April 14, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant