Fix mails for updated test results. Pass the correct 'edit' parameter to

sendNotificationMail() and only send mail if the test data has been changed.
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-04-17 23:28:10 +00:00
committed by WineHQ
parent 82ab0c467f
commit fbb784c2f5

View File

@@ -100,6 +100,11 @@ class testData{
return;
}
$oOldTest = new testData($this->iTestingId);
/* Nothing changed */
if($this == $oOldTest)
return TRUE;
if(query_parameters("UPDATE testResults SET
versionId = '?',
whatWorks = '?',
@@ -127,7 +132,7 @@ class testData{
$this->iTestingId))
{
if(!$bSilent)
$this->SendNotificationMail();
$this->SendNotificationMail("edit");
return true;
}
else