Fix un-queueing of download urls
This commit is contained in:
committed by
WineHQ
parent
9f788ada66
commit
b2b950cb10
@@ -10,15 +10,21 @@ class version_queue
|
|||||||
{
|
{
|
||||||
$this->oVersion = new version($iVersionId);
|
$this->oVersion = new version($iVersionId);
|
||||||
$iTestingId = null;
|
$iTestingId = null;
|
||||||
|
$iDownloadUrlId = null;
|
||||||
|
|
||||||
if($iVersionId)
|
if($iVersionId)
|
||||||
{
|
{
|
||||||
$iTestingId = testData::getNewestTestIdFromVersionId($iVersionId,
|
$iTestingId = testData::getNewestTestIdFromVersionId($iVersionId,
|
||||||
$this->oVersion->sQueued);
|
$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->oTestDataQueue = new testData_queue($iTestingId);
|
||||||
$this->oDownloadUrl = new downloadurl();
|
$this->oDownloadUrl = new downloadurl($iDownloadUrlId);
|
||||||
}
|
}
|
||||||
|
|
||||||
function create()
|
function create()
|
||||||
@@ -67,6 +73,7 @@ class version_queue
|
|||||||
{
|
{
|
||||||
$this->oVersion->unQueue();
|
$this->oVersion->unQueue();
|
||||||
$this->oTestDataQueue->unQueue();
|
$this->oTestDataQueue->unQueue();
|
||||||
|
$this->oDownloadUrl->unQueue();
|
||||||
}
|
}
|
||||||
|
|
||||||
function outputEditor()
|
function outputEditor()
|
||||||
|
|||||||
Reference in New Issue
Block a user