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

Secondary data model does not get updated if it is only referenced through text resources #2894

Open
bjosttveit opened this issue Jan 9, 2025 · 0 comments · May be fixed by #2896
Open

Secondary data model does not get updated if it is only referenced through text resources #2894

bjosttveit opened this issue Jan 9, 2025 · 0 comments · May be fixed by #2896
Assignees
Labels
kind/bug Something isn't working status/triage

Comments

@bjosttveit
Copy link
Member

Description of the bug

An action button updates a secondary data model, but the text referencing this model does not get updated. The secondary data model is only referenced through text resources and not by any component data model bindings or expressions.

I have not been able to reproduce this yet, but I am quite confident that this happens because the model is not stored in the FormDataWrite provider but only the GlobalDataModelReaders. When the action button updates data models, it tries to update it in FormDataWrite, but since no components reference it through data model bindings or expressions, it does not exist there, so nothing happens.

Slack: https://altinn.slack.com/archives/C02EJ9HKQA3/p1736426068728089

Steps To Reproduce

.

Additional Information

No response

@bjosttveit bjosttveit added the kind/bug Something isn't working label Jan 9, 2025
@bjosttveit bjosttveit linked a pull request Jan 10, 2025 that will close this issue
19 tasks
@bjosttveit bjosttveit self-assigned this Jan 13, 2025
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

Successfully merging a pull request may close this issue.

1 participant