mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 20:16:15 +08:00
Update form name in validation of decision activity
This commit is contained in:
committed by
Sébastien Ros
parent
9110e93fca
commit
89a84cd00f
@@ -45,7 +45,7 @@ namespace Orchard.Scripting.CSharp.Forms {
|
||||
}
|
||||
|
||||
public void Validating(ValidatingContext context) {
|
||||
if (context.FormName == "ActionDecision") {
|
||||
if (context.FormName == "ActivityActionDecision") {
|
||||
if (context.ValueProvider.GetValue("Script").AttemptedValue == string.Empty) {
|
||||
context.ModelState.AddModelError("Script", T("You must provide a Script").Text);
|
||||
}
|
||||
@@ -57,4 +57,4 @@ namespace Orchard.Scripting.CSharp.Forms {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user