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

[Content] Set number value to 0 if the api originally returned the value as null #3177

Closed
wants to merge 1 commit into from

Conversation

finnar-bin
Copy link
Contributor

Makes sure that users are able to save a content item when a number field originally has a null value

Fixes #3154

@finnar-bin finnar-bin added bug Something isn't working ready PR is complete and ready for deployment labels Jan 28, 2025
@finnar-bin finnar-bin self-assigned this Jan 28, 2025
Copy link
Contributor

@shrunyan shrunyan left a comment

Choose a reason for hiding this comment

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

@finnar-bin this doesn't feel like the correct solution to me. The issue isn't the value being returned by the API. It is how the UI is treating a default 0 value in a required context.

@shrunyan
Copy link
Contributor

shrunyan commented Jan 28, 2025

Now that I see @geodem127 PR #3176 I'm not sure what the purpose of this PR change would be. @geodem127 PR seems to have the intent of addressing the issue as described in the ticket.

@finnar-bin
Copy link
Contributor Author

finnar-bin commented Jan 30, 2025

Closing this for now as I feel like a better fix can be made to address the issue

@finnar-bin finnar-bin closed this Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready PR is complete and ready for deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Content: Item Cannot Be Saved if the Number Field has a Default Value of 0
3 participants