Fixing typo in TextFieldDriver

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-10-31 14:32:06 -07:00
parent 71ac550354
commit 471b949ed9

View File

@@ -67,7 +67,7 @@ namespace Orchard.Core.Common.Drivers {
if(updater.TryUpdateModel(viewModel, GetPrefix(field, part), null, null)) {
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),
() => shapeHelper.EditorTemplate(TemplateName: "Fields.Common.Text.Edit", Model: viewModel, Prefix: GetPrefix(field, part)));
}