Alexander Nicolaysen Sørnes : Don' t show deleted test results under Your Maintained Apps

Alexander Nicolaysen Sørnes asornes at winehq.org
Sun Jun 28 06:12:19 CDT 2009


Module: appdb
Branch: master
Commit: edfccdaaab7e7f761030a1e97837f7810df29a81
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=edfccdaaab7e7f761030a1e97837f7810df29a81

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Sun Jun 28 13:08:23 2009 +0200

Don't show deleted test results under Your Maintained Apps

---

 include/testData.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

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;




More information about the wine-cvs mailing list