Fix updating of rating info when updating test results

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-01-27 18:27:24 +01:00
committed by Chris Morgan
parent 29f1c4a0de
commit 6d5c979f15

View File

@@ -183,9 +183,6 @@ class testData{
$oOldTest->sTestedRelease." to $this->sTestedRelease.\n"; $oOldTest->sTestedRelease." to $this->sTestedRelease.\n";
} }
if($bUpdateRatingInfo && $this->sState == 'accepted')
$oVersion->updateRatingInfo();
if($this->iVersionId != $oOldTest->iVersionId) if($this->iVersionId != $oOldTest->iVersionId)
{ {
$sWhatChanged .= 'Moved from '.version::fullName($oOldTest->iVersionId).' to '.version::fullName($this->iVersionId)."\n"; $sWhatChanged .= 'Moved from '.version::fullName($oOldTest->iVersionId).' to '.version::fullName($this->iVersionId)."\n";
@@ -228,6 +225,9 @@ class testData{
$this->sState, $this->sState,
$this->iTestingId)) $this->iTestingId))
{ {
if($bUpdateRatingInfo && $this->sState == 'accepted')
$oVersion->updateRatingInfo();
if(!$bSilent) if(!$bSilent)
$this->SendNotificationMail("edit", $sWhatChanged); $this->SendNotificationMail("edit", $sWhatChanged);
return true; return true;