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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$oOldTest = new testData($this->iTestingId);
|
||||||
|
/* Nothing changed */
|
||||||
|
if($this == $oOldTest)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
if(query_parameters("UPDATE testResults SET
|
if(query_parameters("UPDATE testResults SET
|
||||||
versionId = '?',
|
versionId = '?',
|
||||||
whatWorks = '?',
|
whatWorks = '?',
|
||||||
@@ -127,7 +132,7 @@ class testData{
|
|||||||
$this->iTestingId))
|
$this->iTestingId))
|
||||||
{
|
{
|
||||||
if(!$bSilent)
|
if(!$bSilent)
|
||||||
$this->SendNotificationMail();
|
$this->SendNotificationMail("edit");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user