Allow maintainers to modify screenshot description when processing queued items

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-09-27 11:53:31 +02:00
committed by Chris Morgan
parent b96e936ff8
commit 53a6360ec0
2 changed files with 6 additions and 14 deletions

View File

@@ -94,25 +94,18 @@ class appData
return TRUE;
}
function update($bSilent = FALSE)
function update()
{
if(!$this->canEdit())
return FALSE;
$sQuery = "UPDATE appData SET versionId = '?', appId = '?', sDescription = '?'
$sQuery = "UPDATE appData SET versionId = '?', appId = '?', description = '?'
WHERE id = '?'";
$hResult = query_parameters($this->iVersionId, $this->iAppId,
$hResult = query_parameters($sQuery, $this->iVersionId, $this->iAppId,
$this->sDescription, $this->iId);
if(!$hResult)
{
if(!$bResult)
addmsg("Failed to update add data", "red");
return FALSE;
}
if(!$bSilent)
addmsg("Updated app data successfully", "green");
return TRUE;
}

View File

@@ -669,14 +669,13 @@ class screenshot
function getOutputEditorValues($aClean)
{
/* STUB: No update possible, reply text fetched from $aClean */
return TRUE;
$this->sDescription = $aClean['sDescription'];
}
function update()
{
/* STUB: No updating possible at the moment */
return TRUE;
$oAppData = new appData($this->iScreenshotId, null, $this);
return $oAppData->update();
}
function objectHideDelete()