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

RemoveHiddenDataPreview with hidden repeating group sets row values to null instead of deleting rows #321

Open
olemartinorg opened this issue Oct 11, 2023 · 0 comments
Labels
kind/bug Something isn't working status/triage

Comments

@olemartinorg
Copy link
Contributor

Description of the bug

When setting RemoveHiddenDataPreview to true and hiding a repeating group, it might be expected that the repeating group is deleted (i.e. that all rows disappear), but instead the rows are kept and all values (leaf nodes) in the repeating structure are set to null.

This caused problems when receiving data on the other end for at least one customer, as null values here are not valid according to the data model.

Steps To Reproduce

  1. Open mat/lakselus-rapportering
  2. Fill out the form, say you have at least one 'behandling'
  3. Add at least one row in the 'behandlinger' repeating group
  4. Regret your decision and say don't have any 'behandlinger' (thereby hiding the repeating group)
  5. Submit the form
  6. Observe the null-ed out rows in the data model

Additional Information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/triage
Projects
Status: No status
Development

No branches or pull requests

1 participant