Skip to content

Commit

Permalink
🐛 [#4908] Bug fix in adding variables to values dict
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvanwijk committed Dec 20, 2024
1 parent d3dff91 commit 8f72280
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/openforms/registrations/contrib/json/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ def register_submission(self, submission: Submission, options: JSONOptions) -> N
}

# Update values dict with relevant form data
all_variables = {**submission.data, **static_variables_dict}
values.update(
{
form_variable: submission.data.get(
form_variable, static_variables_dict[form_variable]
)
form_variable: all_variables[form_variable]
for form_variable in options["form_variables"]
}
)
Expand Down

0 comments on commit 8f72280

Please sign in to comment.