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:
committed by
WineHQ
parent
82ab0c467f
commit
fbb784c2f5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user