From c494af3eb52c4f02a1397696f8c7ad8e1f1d91b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Wed, 28 Mar 2007 00:09:12 +0000 Subject: [PATCH] Fix display of latest testData to exclude queued entries --- include/testData.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/testData.php b/include/testData.php index febfb03..c79aced 100644 --- a/include/testData.php +++ b/include/testData.php @@ -468,7 +468,10 @@ class testData{ /* retrieve the latest test result for a given version id */ function get_test_for_versionid($iVersionId) { - $sQuery = "SELECT testingId from testResults where versionId = '?' + $sQuery = "SELECT testingId FROM testResults WHERE + versionId = '?' + AND + queued = 'false' ORDER BY testedDate DESC limit 1"; $hResult = query_parameters($sQuery, $iVersionId); if(!$hResult)