ChangeSet ID: 31079
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2007/04/21 14:46:17
Modified files:
include : downloadurl.php
Log message:
Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Fix warnings in downloadurl::processForm(). Calling this method with inappropriate $aClean[]
data is perfectly valid but in tht case the function should return silently
Patch: http://cvs.winehq.org/patch.py?id=31079
Old revision New revision Changes Path
1.12 1.13 +6 -0 appdb/include/downloadurl.php
Index: appdb/include/downloadurl.php
diff -u -p appdb/include/downloadurl.php:1.12 appdb/include/downloadurl.php:1.13
--- appdb/include/downloadurl.php:1.12 21 Apr 2007 19:46:17 -0000
+++ appdb/include/downloadurl.php 21 Apr 2007 19:46:17 -0000
@@ -301,6 +301,12 @@ class downloadurl
/* Process a form made only for submitting one URL */
function processFormSingle($iVersionId, $aValues, $bUnQueue = FALSE)
{
+ /* Calling this function without suitable input data is perfectly valid,
+ but in that case there is nothing to do here */
+ if(empty($aValues['sDownloadUrlDescription']) ||
+ empty($aValues['sDownloadUrlUrl']))
+ return;
+
$iId = null;
if($hResult = appData::getData($iVersionId, "downloadurl", TRUE, TRUE))
{
ChangeSet ID: 31075
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2007/04/21 13:22:14
Modified files:
include : testData_queue.php
Log message:
Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Fix testData_queue's distribution handling. Only update the distribution if the name is set
and avoid a misguiding message by not doing unQueue() on already unqueued distributions.
Patch: http://cvs.winehq.org/patch.py?id=31075
Old revision New revision Changes Path
1.3 1.4 +11 -2 appdb/include/testData_queue.php
Index: appdb/include/testData_queue.php
diff -u -p appdb/include/testData_queue.php:1.3 appdb/include/testData_queue.php:1.4
--- appdb/include/testData_queue.php:1.3 21 Apr 2007 18:22:14 -0000
+++ appdb/include/testData_queue.php 21 Apr 2007 18:22:14 -0000
@@ -37,7 +37,10 @@ class testData_queue
function unQueue()
{
$this->oTestData->unQueue();
- $this->oDistribution->unQueue();
+
+ /* Avoid a misguiding message about the distribution being unqueued */
+ if($this->oDistribution->sQueued != "false")
+ $this->oDistribution->unQueue();
}
function reject()
@@ -48,7 +51,13 @@ class testData_queue
function update()
{
$this->oTestData->update();
- $this->oDistribution->update();
+
+ /* If the distribution was already un-queued the form for editing it would
+ not have been displayed and getOutputEditorValues() wouldn't have
+ retrieved a valid sName for the distribution. If sName isn't valid
+ we shouldn't update the distribution */
+ if($this->oDistribution->sName)
+ $this->oDistribution->update();
}
function outputEditor()
ChangeSet ID: 31072
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2007/04/21 13:03:25
Modified files:
include : version_queue.php
Log message:
Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Only display move test table for existing versions, not queued ones
Patch: http://cvs.winehq.org/patch.py?id=31072
Old revision New revision Changes Path
1.4 1.5 +4 -1 appdb/include/version_queue.php
Index: appdb/include/version_queue.php
diff -u -p appdb/include/version_queue.php:1.4 appdb/include/version_queue.php:1.5
--- appdb/include/version_queue.php:1.4 21 Apr 2007 18: 3:25 -0000
+++ appdb/include/version_queue.php 21 Apr 2007 18: 3:25 -0000
@@ -71,7 +71,10 @@ class version_queue
function outputEditor()
{
- $this->displayMoveTestTable();
+ /* Display duplicate list if this is a an existing version */
+ if($this->oVersion->iVersionId)
+ $this->displayMoveTestTable();
+
$this->oVersion->outputEditor();
/* Allow the user to apply as maintainer if this is a new version.