Skip to content
Snippets Groups Projects
Commit 65fb5939 authored by Rhys Nute's avatar Rhys Nute
Browse files

controllers

parent a13ba102
No related branches found
No related tags found
2 merge requests!38Draft: Businesses,!31Resolve "As a user, I want to see a page of local authorities so that I can easily source contact details for a variety of different local authorities."
......@@ -35,7 +35,7 @@ public class organisationControllers {
@PostMapping("/localForm")
public ModelAndView localAuthSent(@Valid @ModelAttribute("localAuthority")localAuthority localAuthority, BindingResult bindingResult, Model model ) {
if (bindingResult.hasErrors()){
ModelAndView modelAndView = new ModelAndView("local-auth-data", model.asMap());
ModelAndView modelAndView = new ModelAndView("localForm", model.asMap());
return modelAndView;
}else{// converts user input using the organisation constructor into a submittable format to the sql table
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment