mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
committed by
Sebastien Ros
parent
696239fda8
commit
f033b78afe
@@ -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"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user