Fix moving of testResults from qeueud to accepted versions
This commit is contained in:
committed by
Chris Morgan
parent
176377f025
commit
0a9665b24f
@@ -177,6 +177,14 @@ class testData{
|
|||||||
$oOldTest->sTestedRelease." to $this->sTestedRelease.\n";
|
$oOldTest->sTestedRelease." to $this->sTestedRelease.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->iVersionId != $oOldTest->iVersionId)
|
||||||
|
{
|
||||||
|
$sWhatChanged .= 'Moved from '.version::fullName($oOldTest->iVersionId).' to '.version::fullName($this->iVersionId)."\n";
|
||||||
|
$oNewVersion = new version($this->iVersionId);
|
||||||
|
if($oNewVersion->objectGetState() == 'accepted' && $this->sState == 'pending')
|
||||||
|
$this->sState = 'queued';
|
||||||
|
}
|
||||||
|
|
||||||
if(query_parameters("UPDATE testResults SET
|
if(query_parameters("UPDATE testResults SET
|
||||||
versionId = '?',
|
versionId = '?',
|
||||||
whatWorks = '?',
|
whatWorks = '?',
|
||||||
@@ -188,7 +196,8 @@ class testData{
|
|||||||
installs = '?',
|
installs = '?',
|
||||||
runs = '?',
|
runs = '?',
|
||||||
testedRating = '?',
|
testedRating = '?',
|
||||||
comments = '?'
|
comments = '?',
|
||||||
|
state = '?'
|
||||||
WHERE testingId = '?'",
|
WHERE testingId = '?'",
|
||||||
$this->iVersionId,
|
$this->iVersionId,
|
||||||
$this->shWhatWorks,
|
$this->shWhatWorks,
|
||||||
@@ -201,6 +210,7 @@ class testData{
|
|||||||
$this->sRuns,
|
$this->sRuns,
|
||||||
$this->sTestedRating,
|
$this->sTestedRating,
|
||||||
$this->sComments,
|
$this->sComments,
|
||||||
|
$this->sState,
|
||||||
$this->iTestingId))
|
$this->iTestingId))
|
||||||
{
|
{
|
||||||
if(!$bSilent)
|
if(!$bSilent)
|
||||||
|
|||||||
Reference in New Issue
Block a user