mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixes 6189 : TextAreaElement throwing on null ProcessedValue
This commit is contained in:
@@ -22,7 +22,9 @@
|
||||
tagBuilder.AddCssClass("input-validation-error");
|
||||
}
|
||||
|
||||
tagBuilder.SetInnerText(Model.ProcessedValue);
|
||||
if (!String.IsNullOrWhiteSpace((string)Model.ProcessedValue)) {
|
||||
tagBuilder.SetInnerText(Model.ProcessedValue);
|
||||
}
|
||||
}
|
||||
@if (element.ShowLabel) {
|
||||
<label for="@element.HtmlId">@Model.ProcessedLabel</label>
|
||||
|
Reference in New Issue
Block a user