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

Fix Search Attribute bug on ProgramaController

Fix Search Attribute bug on ProgramaController
parent 40f6233b
No related branches found
No related tags found
No related merge requests found
...@@ -471,7 +471,7 @@ public class ProgramaController { ...@@ -471,7 +471,7 @@ public class ProgramaController {
if(!uiModel.asMap().containsKey("Itinerante")){ if(!uiModel.asMap().containsKey("Itinerante")){
uiModel.addAttribute("Itinerante", false); uiModel.addAttribute("Itinerante", false);
} }
if((Boolean)uiModel.asMap().get("Itinerante")){ if(uiModel.asMap().get("Itinerante").equals("true")){
uiModel.addAttribute("Itinerante", false); uiModel.addAttribute("Itinerante", false);
} }
...@@ -480,7 +480,7 @@ public class ProgramaController { ...@@ -480,7 +480,7 @@ public class ProgramaController {
uiModel.addAttribute("create", false); uiModel.addAttribute("create", false);
} }
if((Boolean)uiModel.asMap().get("create")){ if(uiModel.asMap().get("create").equals("true")){
programa = new Programa(); programa = new Programa();
uiModel.addAttribute("programa", new Programa()); uiModel.addAttribute("programa", new Programa());
uiModel.addAttribute("create", false); uiModel.addAttribute("create", false);
......
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