mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixes #7120 - If a Hidden Field is added to a DynamicForm without a Value set then it will crash the front end because of a null value.
This commit is contained in:
committed by
Sébastien Ros
parent
ec0a0998da
commit
a46b86b243
@@ -36,7 +36,7 @@ namespace Orchard.DynamicForms.Drivers {
|
||||
|
||||
protected override void OnDisplaying(HiddenField element, ElementDisplayingContext context) {
|
||||
context.ElementShape.ProcessedName = _tokenizer.Replace(element.Name, context.GetTokenData());
|
||||
context.ElementShape.ProcessedValue = element.RuntimeValue;
|
||||
context.ElementShape.ProcessedValue = element.RuntimeValue ?? string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user