diff -Nru webui.orig/core/TinderboxDS.php webui/core/TinderboxDS.php --- webui.orig/core/TinderboxDS.php 2009-11-27 18:32:30.000000000 +0100 +++ webui/core/TinderboxDS.php 2010-05-16 17:53:49.000000000 +0200 @@ -583,7 +583,7 @@ return $port; } - function getObjects($type, $params = array()) { + function getObjects($type, $params = array(), $orderby = "") { global $objectMap; if (!isset($objectMap[$type])) { @@ -621,6 +621,10 @@ $query = "SELECT * FROM $table"; } + if ($orderby != "") { + $query = $query . " ORDER BY " . $this->db->escape( $orderby ); + } + $results = array(); $rc = $this->_doQueryHashRef($query, $results, $values); @@ -758,6 +762,10 @@ return $builds; } + function listBuilds() { + return $this->getObjects("Build", array(), "build_name"); + } + function getAllLogfilePatterns() { $patterns = $this->getLogfilePatterns(); diff -Nru webui.orig/module/moduleBuilds.php webui/module/moduleBuilds.php --- webui.orig/module/moduleBuilds.php 2010-05-16 17:34:05.000000000 +0200 +++ webui/module/moduleBuilds.php 2010-05-16 17:51:56.000000000 +0200 @@ -120,7 +120,7 @@ } function get_all_builds() { - $all_builds_raw = $this->TinderboxDS->getAllBuilds(); + $all_builds_raw = $this->TinderboxDS->listBuilds(); $all_builds = array(); foreach( $all_builds_raw as $build ) { $all_builds[] = array( 'build_id' => $build->getId(), 'build_name' => $build->getName() );