Skip to content
Snippets Groups Projects
Commit bcdb4e69 authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette
Browse files

Remove "(attribute) create = false" statement

Remove "(attribute) create = false" statement because this was causing
the "create button" doesn't appear on other pages.
parent 76ac89bb
No related branches found
No related tags found
No related merge requests found
......@@ -476,14 +476,14 @@ public class ProgramaController {
}
if(!uiModel.asMap().containsKey("create")){
uiModel.addAttribute("create", false);
}
// if(!uiModel.asMap().containsKey("create")){
// uiModel.addAttribute("create", false);
// }
if((Boolean)uiModel.asMap().get("create")){
programa = new Programa();
uiModel.addAttribute("programa", new Programa());
uiModel.addAttribute("create", false);
// uiModel.addAttribute("create", false);
}
uiModel.addAttribute("tematicas", programa.getTematicas());
......@@ -496,7 +496,7 @@ public class ProgramaController {
programa.setNomeDivulgacao(null);
uiModel.addAttribute("nomeDivulgacao", programa.getNomeDivulgacao());
uiModel.addAttribute("programas", Programa.findWithParameters(programa.getNomeOficial(), programa.getNomeDivulgacao(), programa.getTematicas()));
System.out.println("######## 5 ########");
return "programas/search";
}
......
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