Commit 1aa3b925 authored by Elias Englmeier's avatar Elias Englmeier
Browse files

fixed map bug

parent af2f238c
......@@ -68,8 +68,7 @@ public class MapModulePortlet extends MVCPortlet {
//case guest user
result = JSONFactoryUtil.looseSerializeDeep(IdeasLocalServiceUtil.getIdeasByUserRoleProjectId(RoleConstants.GUEST, -1, projectId));
}
System.out.println(result);
if(result.equals(null) || result.equals("")){
if(result.equals(null) || result.equals("") || result.equals("[]")){
//at least return all accepted ideas in any case
result = JSONFactoryUtil.looseSerializeDeep(IdeasLocalServiceUtil.getAllAccpetedIdeas());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment