-
Notifications
You must be signed in to change notification settings - Fork 23
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
Removing variables/fields can cause Logic tab to crash #3422
Comments
LaurensBurger
added
bug
Something isn't working
triage
Issue needs to be validated. Remove this label if the issue considered valid.
labels
Aug 25, 2023
Refinement:
Possibly we could display the JSON definition as well so that it can be copy-pasted to "back up" complex rules. |
Silvia: saving the form first saves the variables and then it goes wrong in the saving of the logic rules, so this could lead to a broken state in the frontend. To confirm. |
sergei-maertens
removed
the
triage
Issue needs to be validated. Remove this label if the issue considered valid.
label
Aug 28, 2023
Scope this to reproducing it first and then we decide the importance/prio of a fix. |
Steps to reproduce:
|
2 tasks
SilviaAmAm
added a commit
that referenced
this issue
Sep 6, 2023
SilviaAmAm
added a commit
that referenced
this issue
Sep 6, 2023
SilviaAmAm
added a commit
that referenced
this issue
Sep 7, 2023
SilviaAmAm
added a commit
that referenced
this issue
Sep 7, 2023
SilviaAmAm
added a commit
that referenced
this issue
Sep 7, 2023
SilviaAmAm
added a commit
that referenced
this issue
Sep 7, 2023
SilviaAmAm
added a commit
that referenced
this issue
Sep 8, 2023
…-from-breaking-form [#3422] Prevent broken logic rule to break admin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Product versie / Product version
2.3.0
Omschrijf het probleem / Describe the bug
Sentry: 337920
Utr: 112
Removing fields, groups or steps that are in use in the logic tab can cause the logic tab to crash, in turn breaking the form.
The only way to fix it is to export the form, remove logic rules that contain the unused variables and import again.
When trying to import a form in this state you see the error:
Er is iets foutgegaan bij het importeren van formulier: {'json_logic_trigger': [ErrorDetail(string='De opgegeven variabele is niet aanwezig in het formulier', code='invalid')]}
unsure about conditions on how to reproduce
The text was updated successfully, but these errors were encountered: