From b2b950cb100ea68dfe521f3921f2bca2abf9a419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Thu, 31 May 2007 02:33:36 +0000 Subject: [PATCH] Fix un-queueing of download urls --- include/version_queue.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/version_queue.php b/include/version_queue.php index 9b04243..9ac1c86 100644 --- a/include/version_queue.php +++ b/include/version_queue.php @@ -10,15 +10,21 @@ class version_queue { $this->oVersion = new version($iVersionId); $iTestingId = null; + $iDownloadUrlId = null; if($iVersionId) { $iTestingId = testData::getNewestTestIdFromVersionId($iVersionId, $this->oVersion->sQueued); + if($hResult = appData::getData($iVersionId, "downloadurl", TRUE, TRUE)) + { + if($oRow = mysql_fetch_object($hResult)) + $iDownloadUrlId = $oRow->id; + } } $this->oTestDataQueue = new testData_queue($iTestingId); - $this->oDownloadUrl = new downloadurl(); + $this->oDownloadUrl = new downloadurl($iDownloadUrlId); } function create() @@ -67,6 +73,7 @@ class version_queue { $this->oVersion->unQueue(); $this->oTestDataQueue->unQueue(); + $this->oDownloadUrl->unQueue(); } function outputEditor()