From 6d5c979f1567aabb0e62cc9502aad49e7e48813d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sun, 27 Jan 2008 18:27:24 +0100 Subject: [PATCH] Fix updating of rating info when updating test results --- include/testData.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/testData.php b/include/testData.php index 19cf8ae..cfa06fd 100644 --- a/include/testData.php +++ b/include/testData.php @@ -183,9 +183,6 @@ class testData{ $oOldTest->sTestedRelease." to $this->sTestedRelease.\n"; } - if($bUpdateRatingInfo && $this->sState == 'accepted') - $oVersion->updateRatingInfo(); - if($this->iVersionId != $oOldTest->iVersionId) { $sWhatChanged .= 'Moved from '.version::fullName($oOldTest->iVersionId).' to '.version::fullName($this->iVersionId)."\n"; @@ -228,6 +225,9 @@ class testData{ $this->sState, $this->iTestingId)) { + if($bUpdateRatingInfo && $this->sState == 'accepted') + $oVersion->updateRatingInfo(); + if(!$bSilent) $this->SendNotificationMail("edit", $sWhatChanged); return true;