Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: settings - empty value is always valid (reset to default) [DHIS2-18962] #19912

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jbee
Copy link
Contributor

@jbee jbee commented Feb 12, 2025

Settings validation was missing to short-circuit when the new value was empty, which means it is unset and falls back to the default.

@jbee jbee self-assigned this Feb 12, 2025
Copy link
Contributor

@david-mackessy david-mackessy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can a test be added?
Methods with many different conditional paths should really have tests.

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.

3 participants