Fix comment::delete() to take $bSilent as an input parameter and use

comment::SendNotificationEmail(). Update version::delete() to pass false into comment::delete()
so we don't send an email for each comment we are deleting for a given version. Fixes bug 8473.
This commit is contained in:
Chris Morgan
2007-08-24 02:52:34 +00:00
committed by WineHQ
parent 6b5305d1bf
commit 9e05efb1b6
3 changed files with 56 additions and 28 deletions

View File

@@ -256,7 +256,10 @@ class version {
foreach($aCommentsIds as $iCommentId)
{
$oComment = new Comment($iCommentId);
$oComment->delete($bSilent);
// delete the comment silently, we don't want to send out
// any notifications since the version is being deleted
$oComment->delete(false);
}
@@ -297,8 +300,6 @@ class version {
}
/* fetch Test Results Ids */
$aTestingIds = array();
$sQuery = "SELECT *