Latest builds not appearing [SOLVED]

Michael L. Hostbaek mich at FreeBSD.org
Mon Sep 12 10:19:50 EDT 2005


Pav Lucistnik (pav) writes:
> > Over the last couple of days, I've been testing 2.1.0 Beta 1 with PgSQL.
> > Almost everything seems to work fine. Except the "Lastest builds table"
> > on the "lastbuilds.php?showbuild" page is at all times completely empty.
> > This is the case for all my Builds.

By applying attached patch to lastbuilds.php - I'm now able to see
"Latest builds" information.

Basically, I just change all field names to lowercase.

/mich

-------------- next part --------------
--- lastbuilds.php.orig	Mon Sep 12 16:15:44 2005
+++ lastbuilds.php	Mon Sep 12 16:12:39 2005
@@ -116,7 +116,6 @@
 	$builds = $ds->getBuildsDetailed(array("Build_Name" => $showbuild, "Last_Built" => 20));
 
 	if ($builds) {
-
 		?>
 		<table>
 		<tr>
@@ -131,13 +130,13 @@
 		<?php
 		foreach ($builds as $build) {
 			echo "<tr>\n";
-			echo "<td><a href=\"showbuild.php?name=" . $build["Build_Name"] . "\">" . $build["Build_Name"] . "</a></td>\n";
-			echo "<td><a href=\"showport.php?id=" . $build["Port_Id"] . " \">" . $build["Port_Directory"] . "</a></td>\n";
-			echo "<td>" . $build["Last_Built_Version"] . "</td>\n";
-			echo $ds->getStatusCell($build["Last_Status"], $build["Build_Name"], $build["Last_Built_Version"]);
-			echo $ds->getLinksCell($build["Last_Status"], $build["Build_Name"], $build["Last_Built_Version"], $ds->getPackageSuffix($build["Jail_Id"]));
-			echo "<td>" . $ds->prettyDatetime($build["Last_Built"]) . "</td>\n";
-			echo "<td>" . $ds->prettyDatetime($build["Last_Successful_Built"]) . "</td>\n";
+			echo "<td><a href=\"showbuild.php?name=" . $build["build_name"] . "\">" . $build["build_name"] . "</a></td>\n";
+			echo "<td><a href=\"showport.php?id=" . $build["port_id"] . " \">" . $build["port_directory"] . "</a></td>\n";
+			echo "<td>" . $build["last_built_version"] . "</td>\n";
+			echo $ds->getStatusCell($build["last_status"], $build["build_name"], $build["last_built_version"]);
+			echo $ds->getLinksCell($build["last_status"], $build["build_name"], $build["last_built_version"], $ds->getPackageSuffix($build["Jail_Id"]));
+			echo "<td>" . $ds->prettyDatetime($build["last_built"]) . "</td>\n";
+			echo "<td>" . $ds->prettyDatetime($build["last_successful_built"]) . "</td>\n";
 			echo "</tr>\n";
 		}
 		echo "</table>\n";


More information about the tinderbox-list mailing list