Author: sohil.shah(a)jboss.com
Date: 2009-01-02 19:38:03 -0500 (Fri, 02 Jan 2009)
New Revision: 12424
Modified:
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/viewfile.jsp
Log:
JBPORTAL-2150 - null pointer exception raise when clicking a langue
Modified:
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/viewfile.jsp
===================================================================
---
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/viewfile.jsp 2009-01-03
00:09:10 UTC (rev 12423)
+++
branches/JBoss_Portal_Branch_2_6/core-cms/src/resources/portal-cms-war/WEB-INF/jsp/cms/admin/viewfile.jsp 2009-01-03
00:38:03 UTC (rev 12424)
@@ -175,7 +175,19 @@
if (contentList.size() > 0)
{
Content content = (Content)contentList.get(0);
+
+ boolean hasPublishedContent = false;
+ for (int i = 0; i < contentList.size(); i++) // cycle thru list of version
nodes
+ {
+ Content version = (Content)contentList.get(i);
+ if (!version.isWaitingForPublishApproval())
+ {
+ hasPublishedContent = true;
+ break;
+ }
+ }
%>
+<%if(hasPublishedContent){%>
<tr>
<td height="15"></td>
</tr>
@@ -325,6 +337,7 @@
<td><%= version.getTitle() %>
</td>
</tr>
+<%}%>
<%
}
}
Show replies by date