mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fix "prodiver" typo - http://orchardforms.codeplex.com/workitem/3
Depends on Orchard.Forms changeset b66f39aac225 --HG-- branch : 1.x extra : transplant_source : %2Bz%60%07%E9J4%DE%20%B9%F7q%A6dLz%F1%CA%15E
This commit is contained in:
@@ -57,15 +57,15 @@ namespace Orchard.Email.Rules {
|
|||||||
|
|
||||||
public void Validating(dynamic context) {
|
public void Validating(dynamic context) {
|
||||||
if (context.FormName == "ActionEmail") {
|
if (context.FormName == "ActionEmail") {
|
||||||
if (context.ValueProdiver.GetValue("Recipient").AttemptedValue == String.Empty) {
|
if (context.ValueProvider.GetValue("Recipient").AttemptedValue == String.Empty) {
|
||||||
context.ModelState.AddModelError("Recipient", T("You must select at least one recipient").Text);
|
context.ModelState.AddModelError("Recipient", T("You must select at least one recipient").Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (context.ValueProdiver.GetValue("Subject").AttemptedValue == String.Empty) {
|
if (context.ValueProvider.GetValue("Subject").AttemptedValue == String.Empty) {
|
||||||
context.ModelState.AddModelError("Subject", T("You must provide a Subject").Text);
|
context.ModelState.AddModelError("Subject", T("You must provide a Subject").Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (context.ValueProdiver.GetValue("Body").AttemptedValue == String.Empty) {
|
if (context.ValueProvider.GetValue("Body").AttemptedValue == String.Empty) {
|
||||||
context.ModelState.AddModelError("Body", T("You must provide a Body").Text);
|
context.ModelState.AddModelError("Body", T("You must provide a Body").Text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user