You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a form that contains two fields with different prevalue sources that are based on the same type (in my case SQL Database). Attached to this form is a "Send email with template (Razor)"-workflow. After submission, the Model.PrevalueMaps inside the template contains an entry for each field with a prevalue source. But the values of these entries are identical for each prevalue source with the same type (e.g. SQL Database), instead of what it actually should be. I've also tested it with the prevalue source type "Get values from textfile" which had the same problem, so it seems to be a general problem and not specific to a single type. It also appears to me, that the last field within the same prevalue source type is always the one whose values are chosen.
Steps to reproduce
Create 2 separate prevalue sources with the same type (e.g. get values from textfile) but different values
Create a form that contains two fields, each one connected to one of the prevalue sources
Add a "Send email with template (Razor)" workflow to the form
Add a breakpoint to the template and submit the form
Look up the value of Model.PrevalueMaps. Even though the 2 prevalue sources had different values, they are now identical for both fields.
Expected result
The correct prevalues for the different fields are fetched independent of the fact that they share the prevalue source type with another field.
Actual result
The prevalues of the last field are fetched and applied for every other field within the same prevalue source type
Specifics
Umbraco.Forms Version 11.0.0
The text was updated successfully, but these errors were encountered:
Thanks for the report on this issue. I can replicate and see what we need to do to fix. We'll resolve this for the upcoming 10.3/11,1 releases, and backport the fix to 8 and 9.
Description
I have a form that contains two fields with different prevalue sources that are based on the same type (in my case SQL Database). Attached to this form is a "Send email with template (Razor)"-workflow. After submission, the Model.PrevalueMaps inside the template contains an entry for each field with a prevalue source. But the values of these entries are identical for each prevalue source with the same type (e.g. SQL Database), instead of what it actually should be. I've also tested it with the prevalue source type "Get values from textfile" which had the same problem, so it seems to be a general problem and not specific to a single type. It also appears to me, that the last field within the same prevalue source type is always the one whose values are chosen.
Steps to reproduce
Expected result
The correct prevalues for the different fields are fetched independent of the fact that they share the prevalue source type with another field.
Actual result
The prevalues of the last field are fetched and applied for every other field within the same prevalue source type
Specifics
Umbraco.Forms Version 11.0.0
The text was updated successfully, but these errors were encountered: