Fix validation for Terms of Service
This commit is contained in:
@@ -27,9 +27,6 @@ namespace LeafWeb.WebCms.Controllers
|
||||
[HttpPost]
|
||||
public ActionResult Submit(LeafInputCreate viewModel)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
return CurrentUmbracoPage();
|
||||
|
||||
// directory name is the sessionID
|
||||
var files = GetBackloadDirectoryFiles(Session.SessionID);
|
||||
|
||||
@@ -67,7 +64,7 @@ namespace LeafWeb.WebCms.Controllers
|
||||
}
|
||||
|
||||
HydrateCreateViewModel(viewModel);
|
||||
return CurrentUmbracoPage();
|
||||
return CurrentUmbracoPage();
|
||||
}
|
||||
|
||||
private void HydrateCreateViewModel(dynamic viewModel)
|
||||
|
||||
Reference in New Issue
Block a user