2sic / app-mobius-forms

Simple jQuery based 2sxc form - to use immediately or to modify as needed. Multi-language, simple, with Recaptcha
MIT License
8 stars 4 forks source link

Bug in Razor code in the Generic Smart Form Example (fix included) #48

Closed skarpik closed 2 years ago

skarpik commented 2 years ago

Mobius V5.03.01 Hybrid DNN v.9.10.02 2SXC v12.10.0

Running the Generic Smart Form example without modification results in the following error:

Message:Customer Send mail failed: d:\Websites\dnn-9-10-2\Website\Portals\0\2sxc\MobiusForms5\live\email-templates\EmailToCustomerWithData.cs(24): error CS1061: 'System.Collections.Generic.Dictionary<string,object>' does not contain a definition for 'Subject' and no extension method 'Subject' accepting a first argument of type 'System.Collections.Generic.Dictionary<string,object>' could be found (are you missing a using directive or an assembly reference?)

Replacing line 24:

" + data.Subject + @"

with

" + data["Subject"] + @"

appears to fix the problem (no errors and the output looks correct).

iJungleboy commented 2 years ago

@maaaximum

maaaximum-at-2sic commented 2 years ago

@skarpik thanks for reporting this issue.

Fixed in v05.03.02.

skarpik commented 2 years ago

Thank you very much for fixing this.