Fix handling of queued downloadurls
This commit is contained in:
committed by
Chris Morgan
parent
ecbfa84600
commit
e86ccd1390
@@ -120,10 +120,14 @@ class appData
|
||||
|
||||
function listSubmittedBy($iUserId, $bQueued = true)
|
||||
{
|
||||
$sExtra = '';
|
||||
if($bQueued) // downloadurls are only queued together with versions
|
||||
$sExtra = " AND appData.type != 'downloadurl' ";
|
||||
|
||||
$hResult = query_parameters("SELECT * FROM appData WHERE
|
||||
appData.submitterId = '?'
|
||||
AND
|
||||
appData.state = '?'
|
||||
appData.state = '?' $sExtra
|
||||
ORDER BY appData.id",
|
||||
$iUserId, $bQueued ? 'queued' : 'accepted');
|
||||
|
||||
|
||||
@@ -330,7 +330,7 @@ class downloadurl
|
||||
VALUES('?', '?', '?', '?', '?', ?, '?')",
|
||||
$this->iVersionId, "downloadurl", $this->sDescription,
|
||||
$this->sUrl,
|
||||
downloadurl::canEdit($this->iVersionId) ? 'accepted' : 'queued',
|
||||
$this->mustBeQueued() ? 'queued' : 'accepted',
|
||||
"NOW()",
|
||||
$_SESSION['current']->iUserId);
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ class version_queue
|
||||
function update()
|
||||
{
|
||||
$this->oVersion->update();
|
||||
$this->oDownloadUrl->update();
|
||||
$this->oTestDataQueue->update();
|
||||
}
|
||||
|
||||
@@ -195,6 +196,7 @@ class version_queue
|
||||
{
|
||||
$this->oVersion->iAppId = $aClean['iAppId'];
|
||||
$this->oVersion->getOutputEditorValues($aClean);
|
||||
$this->oDownloadUrl->getOutputEditorValues($aClean);
|
||||
$this->oTestDataQueue->getOutputEditorValues($aClean);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user