Commit 0ac9f182 authored by Elias Englmeier's avatar Elias Englmeier
Browse files

tmp changes to test server

parent 0689cf89
......@@ -49,6 +49,7 @@ public class MapModulePortlet extends MVCPortlet {
String result = null;
User user;
if(ProjectLocalServiceUtil.getProjectByLayoutIdRef(themeDisplay.getLayout().getPrimaryKey()) != null){
System.out.println("MM: 1");
long projectId = ProjectLocalServiceUtil.getProjectByLayoutIdRef(themeDisplay.getLayout().getPrimaryKey()).getPrimaryKey();
try {
user = PortalUtil.getUser(renderRequest);
......@@ -73,6 +74,7 @@ public class MapModulePortlet extends MVCPortlet {
}
else if (IdeasLocalServiceUtil.getIdeasByLayoutIdRef(themeDisplay.getLayout().getPrimaryKey()) != null){
System.out.println("MM: 2");
ArrayList<Ideas> tmp = new ArrayList<Ideas>();
Ideas i = IdeasLocalServiceUtil.getIdeasByLayoutIdRef(themeDisplay.getLayout().getPrimaryKey());
tmp.add(i);
......@@ -80,6 +82,7 @@ public class MapModulePortlet extends MVCPortlet {
JSONFactoryUtil.looseSerializeDeep(tmp));
}
else{
System.out.println("MM: 3");
renderRequest.setAttribute("allIdeas",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