Fix app/version rejection. Version queue requeue wasn't requeueing its downloadurl, downloadurl
class was missing objectManager functionality. Rejected appData wasn't being accounted for.
This commit is contained in:
committed by
WineHQ
parent
be5361f751
commit
095d228296
@@ -244,8 +244,13 @@ class downloadurl
|
||||
$sDownloadUrlDescription = $aValues["sDownloadUrlDescription"];
|
||||
} else if($iVersionId)
|
||||
{
|
||||
if($hResult = appData::getData($iVersionId, "downloadurl",
|
||||
TRUE, TRUE))
|
||||
/* This illustrates the importance of converting downloadurl completely
|
||||
to the objectManager model. If we don't get a match searching for
|
||||
a queued entry, try finding a rejected one. */
|
||||
if(($hResult = appData::getData($iVersionId, "downloadurl",
|
||||
TRUE, TRUE, FALSE)) ||
|
||||
$hResult = appData::getData($iVersionId, "downloadurl",
|
||||
TRUE, TRUE, TRUE))
|
||||
{
|
||||
$oRow = mysql_fetch_object($hResult);
|
||||
$sDownloadUrlUrl = $oRow->url;
|
||||
@@ -370,6 +375,20 @@ class downloadurl
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
function reQueue()
|
||||
{
|
||||
$oAppData = new AppData($this->iId);
|
||||
|
||||
return $oAppData->reQueue();
|
||||
}
|
||||
|
||||
function reject()
|
||||
{
|
||||
$oAppData = new AppData($this->iId);
|
||||
|
||||
return $oAppData->reject();
|
||||
}
|
||||
|
||||
function objectGetEntries($bQueued, $bRejected, $iRows = 0, $iStart = 0)
|
||||
{
|
||||
return appData::objectGetEntries($bQueued, $bRejected, $iRows, $iStart,
|
||||
|
||||
Reference in New Issue
Block a user