mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing typo in TextFieldDriver
--HG-- branch : 1.x
This commit is contained in:
@@ -67,7 +67,7 @@ namespace Orchard.Core.Common.Drivers {
|
|||||||
|
|
||||||
if(updater.TryUpdateModel(viewModel, GetPrefix(field, part), null, null)) {
|
if(updater.TryUpdateModel(viewModel, GetPrefix(field, part), null, null)) {
|
||||||
if (viewModel.Settings.Required && string.IsNullOrWhiteSpace(viewModel.Text)) {
|
if (viewModel.Settings.Required && string.IsNullOrWhiteSpace(viewModel.Text)) {
|
||||||
updater.AddModelError("Text", T("The fields {0} is mandatory", field.DisplayName));
|
updater.AddModelError("Text", T("The field {0} is mandatory", field.DisplayName));
|
||||||
return ContentShape("Fields_Common_Text_Edit", GetDifferentiator(field, part),
|
return ContentShape("Fields_Common_Text_Edit", GetDifferentiator(field, part),
|
||||||
() => shapeHelper.EditorTemplate(TemplateName: "Fields.Common.Text.Edit", Model: viewModel, Prefix: GetPrefix(field, part)));
|
() => shapeHelper.EditorTemplate(TemplateName: "Fields.Common.Text.Edit", Model: viewModel, Prefix: GetPrefix(field, part)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user