#20299: Fixed validation summary not being displayed

Work Item: 20299
This commit is contained in:
Tony Mackay
2013-11-22 13:28:27 +00:00
committed by Sebastien Ros
parent 696239fda8
commit f033b78afe

View File

@@ -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"));
}