com web/bugs: - Send a mail notification when automatically closing a bug report: www/rpc.php

From: Date: Sat, 08 Sep 2012 18:49:03 +0000
Subject: com web/bugs: - Send a mail notification when automatically closing a bug report: www/rpc.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-14659@lists.php.net to get a copy of this message
Commit: 31876f44191dd7e4544f1dfa947fae408b7f67a4 Author: Felipe Pena <felipensp@gmail.com> Sat, 8 Sep 2012 15:49:03 -0300 Parents: 2b8f9f1844bc720e1e65ab373d15165181d867c1 Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=31876f44191dd7e4544f1dfa947fae408b7f67a4 Log: - Send a mail notification when automatically closing a bug report Changed paths: M www/rpc.php Diff: diff --git a/www/rpc.php b/www/rpc.php index 5468101..60f5da0 100644 --- a/www/rpc.php +++ b/www/rpc.php @@ -63,6 +63,13 @@ if (!empty($_POST['ncomment']) && !empty($_POST['user'])) { LIMIT 1 "); $prep->execute(array($bug_id)); + + $in = $bug; + /* Just change the bug status */ + $in['status'] = $_POST['status']; + + /* Send a mail notification when automatically closing a bug */ + mail_bug_updates($bug, $in, "{$user}@php.net", $ncomment, 2, $bug_id); } echo json_encode(array('result' => array('status' => $bug)));

« previous php.webmaster (#14659) next »