Skip to content

Commit

Permalink
#2819 Fix bug with empty tokens in test message templates
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanovM committed Jan 9, 2018
1 parent 33f7dea commit 50308d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public virtual IActionResult TestTemplate(TestMessageTemplateModel model)
if (formKey.StartsWith("token_", StringComparison.InvariantCultureIgnoreCase))
{
var tokenKey = formKey.Substring("token_".Length).Replace("%", "");
var stringValue = form[formKey];
var stringValue = form[formKey].ToString();

//try get non-string value
object tokenValue;
Expand Down

0 comments on commit 50308d2

Please sign in to comment.