From edfccdaaab7e7f761030a1e97837f7810df29a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sun, 28 Jun 2009 13:08:23 +0200 Subject: [PATCH] Don't show deleted test results under Your Maintained Apps --- include/testData.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/testData.php b/include/testData.php index 7a28d54..9e54a6d 100644 --- a/include/testData.php +++ b/include/testData.php @@ -1083,10 +1083,12 @@ class testData{ function getTestResultsForUser($iUserId, $iVersionId) { + $oVersion = new version($iVersionId); $hResult = query_parameters("SELECT * FROM testResults WHERE submitterId = '?' AND versionId = '?' - ORDER BY testingId DESC", $iUserId, $iVersionId); + AND state = '?' + ORDER BY testingId DESC", $iUserId, $iVersionId, $oVersion->objectGetState()); if(!$hResult) return null;