diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Controllers/CommentController.cs b/src/Orchard.Web/Modules/Orchard.Comments/Controllers/CommentController.cs index 38c4fec44..56ff22f49 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Controllers/CommentController.cs +++ b/src/Orchard.Web/Modules/Orchard.Comments/Controllers/CommentController.cs @@ -35,19 +35,19 @@ namespace Orchard.Comments.Controllers { var editorShape = Services.ContentManager.UpdateEditor(comment, this); - if (!ModelState.IsValidField("Author")) { + if (!ModelState.IsValidField("Comments.Author")) { Services.Notifier.Error(T("Name is mandatory and must have less than 255 chars")); } - if (!ModelState.IsValidField("Email")) { + if (!ModelState.IsValidField("Comments.Email")) { Services.Notifier.Error(T("Email is invalid or is longer than 255 chars")); } - if (!ModelState.IsValidField("Site")) { + if (!ModelState.IsValidField("Comments.Site")) { Services.Notifier.Error(T("Site url is invalid or is longer than 255 chars")); } - if (!ModelState.IsValidField("CommentText")) { + if (!ModelState.IsValidField("Comments.CommentText")) { Services.Notifier.Error(T("Comment is mandatory")); }