You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ev...@apache.org on 2007/01/11 15:26:44 UTC
svn commit: r495234 -
/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java
Author: evenisse
Date: Thu Jan 11 06:26:39 2007
New Revision: 495234
URL: http://svn.apache.org/viewvc?view=rev&rev=495234
Log:
[CONTINUUM-1121] Fix buildNumber link
Modified:
maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java
Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java?view=diff&rev=495234&r1=495233&r2=495234
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java Thu Jan 11 06:26:39 2007
@@ -73,7 +73,7 @@
if ( project.getState() == 1 || project.getState() == 10 || project.getState() == 2 ||
project.getState() == 3 || project.getState() == 4 )
{
- if ( project.getBuildNumber() > 0 )
+ if ( buildNumber > 0 )
{
HashMap params = new HashMap();
@@ -81,7 +81,7 @@
params.put( "projectName", project.getName() );
- params.put( "buildId", new Integer( buildNumber ) );
+ params.put( "buildId", new Integer( project.getBuildInSuccessId() ) );
params.put( "projectGroupId", new Integer( project.getProjectGroupId() ) );
@@ -96,11 +96,11 @@
if ( isAuthorized( project ) )
{
// we are authzd so act normally
- result += "<a href=\"" + url + "\">" + project.getBuildNumber() + "</a>";
+ result += "<a href=\"" + url + "\">" + buildNumber + "</a>";
}
else
{
- result += project.getBuildNumber();
+ result += buildNumber;
}
}
else