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:
randompete
2011-11-25 10:00:55 +00:00
parent ec4e2d3327
commit a6f2ae0d31
@@ -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);
} }
} }