[AppDB] Only delete distributions from the queue if there are no other tests attached

Rosanne DiMesio dimesio at earthlink.net
Wed Jul 19 12:25:56 CDT 2017


Fixes a bug introduced by 8cf9bd53fc0f5251bdba75ae88215fa1c0da8880.

Signed-off-by: Rosanne DiMesio <dimesio at earthlink.net>
---
 include/testData.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/testData.php b/include/testData.php
index c226b6e..8af655c 100644
--- a/include/testData.php
+++ b/include/testData.php
@@ -157,7 +157,7 @@ class testData{
             $oOldDist = new distribution($oOldTest->iDistributionId);
             $sWhatChanged .= "Operating system was changed from $oOldDist->sName ".
                     "to $oNewDist->sName.\n";
-            if($oOldTest->iDistributionId != "accepted")
+            if(sizeof($oOldDist->aTestingIds)<=1)
             {
                 $oOldDist->delete();
                 addmsg("Rejected operating system has been deleted.", "red");
-- 
2.12.3




More information about the wine-patches mailing list