continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From batkin...@apache.org
Subject svn commit: r1677515 - in /continuum/trunk/continuum-webapp/src/main: java/org/apache/continuum/web/action/ViewBuildsReportAction.java webapp/WEB-INF/jsp/viewProjectBuildsReport.jsp
Date Mon, 04 May 2015 01:43:22 GMT
Author: batkinson
Date: Mon May  4 01:43:21 2015
New Revision: 1677515

URL: http://svn.apache.org/r1677515
Log:
Restoring original build report behavior: initial page shows no result feedback.

Modified:
    continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java
    continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/viewProjectBuildsReport.jsp

Modified: continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java?rev=1677515&r1=1677514&r2=1677515&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java
(original)
+++ continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java
Mon May  4 01:43:21 2015
@@ -139,7 +139,7 @@ public class ViewBuildsReportAction
 
     private Map<String, Integer> permittedGroupMap;
 
-    private List<BuildResult> filteredResults = new ArrayList<BuildResult>();
+    private List<BuildResult> filteredResults;
 
     private HttpServletResponse rawResponse;
 
@@ -297,6 +297,7 @@ public class ViewBuildsReportAction
         // Users can preview a limited number of records (use export for more)
         int offset = 0;
         List<BuildResult> results;
+        filteredResults = new ArrayList<BuildResult>();
         populating:
         do
         {

Modified: continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/viewProjectBuildsReport.jsp
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/viewProjectBuildsReport.jsp?rev=1677515&r1=1677514&r2=1677515&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/viewProjectBuildsReport.jsp
(original)
+++ continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/viewProjectBuildsReport.jsp
Mon May  4 01:43:21 2015
@@ -86,6 +86,7 @@
       </td></tr>
     </s:form>
 
+    <s:if test="filteredResults != null">
       <div id="h3">
      	  <h3>Results</h3>
        	  <s:if test="filteredResults.size() > 0">
@@ -180,6 +181,7 @@
             <s:text name="projectBuilds.report.noResult"/></p>
           </s:else>
       </div>
+    </s:if>
   </body>
   </s:i18n>
 </html>



Mime
View raw message