Module: appdb Branch: master Commit: 195a145da4b65421fd969a7088d998bbd5b21637 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=195a145da4b65421fd969a708...
Author: Rosanne DiMesio dimesio@earthlink.net Date: Wed Jul 19 12:25:56 2017 -0500
Only delete distributions from the queue if there are no other tests attached
Fixes a bug introduced by 8cf9bd53fc0f5251bdba75ae88215fa1c0da8880.
Signed-off-by: Rosanne DiMesio dimesio@earthlink.net Signed-off-by: Jeremy Newman jnewman@codeweavers.com
---
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");