Fix display of latest testData to exclude queued entries

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-03-28 00:09:12 +00:00
committed by WineHQ
parent 2de363c2d7
commit c494af3eb5

View File

@@ -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)