svn: /web/php-bugs/trunk/ include/functions.php www/bug.php

From: Date: Sun, 25 Jul 2010 19:19:02 +0000
Subject: svn: /web/php-bugs/trunk/ include/functions.php www/bug.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-8590@lists.php.net to get a copy of this message
felipe Sun, 25 Jul 2010 19:19:02 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=301542 Log: - Added block_user_comment to be get into the bugs_get_bug() and the diff stuff Changed paths: U web/php-bugs/trunk/include/functions.php U web/php-bugs/trunk/www/bug.php Modified: web/php-bugs/trunk/include/functions.php =================================================================== --- web/php-bugs/trunk/include/functions.php 2010-07-25 18:56:29 UTC (rev 301541) +++ web/php-bugs/trunk/include/functions.php 2010-07-25 19:19:02 UTC (rev 301542) @@ -695,7 +695,8 @@ 'package_name' => 'Package', 'php_os' => 'Operating System', 'php_version' => 'PHP Version', - 'assign' => 'Assigned To' + 'assign' => 'Assigned To', + 'block_user_comment' => 'Block user comment' ); foreach (array_keys($fields) as $name) { @@ -797,6 +798,7 @@ 'php_os' => 'Operating System', 'php_version' => 'PHP Version', 'assign' => 'Assigned To', + 'block_user_comment' => 'Block user comment' ); foreach ($fields as $name => $desc) { @@ -1393,7 +1395,7 @@ $query = 'SELECT b.id, b.package_name, b.bug_type, b.email, b.reporter_name, b.sdesc, b.ldesc, b.php_version, b.php_os, - b.status, b.ts1, b.ts2, b.assign, + b.status, b.ts1, b.ts2, b.assign, b.block_user_comment, UNIX_TIMESTAMP(b.ts1) AS submitted, UNIX_TIMESTAMP(b.ts2) AS modified, COUNT(bug=b.id) AS votes, Modified: web/php-bugs/trunk/www/bug.php =================================================================== --- web/php-bugs/trunk/www/bug.php 2010-07-25 18:56:29 UTC (rev 301541) +++ web/php-bugs/trunk/www/bug.php 2010-07-25 19:19:02 UTC (rev 301542) @@ -403,7 +403,7 @@ if ($status == 'Closed' && $_POST['in']['assign'] == '') { $_POST['in']['assign'] = $auth_user->handle; } - $block_comment = isset($_POST['in']['block_user_comment']) ? $_POST['in']['block_user_comment'] : 'N'; + $_POST['in']['block_user_comment'] = isset($_POST['in']['block_user_comment']) ? 'S' : 'N'; $dbh->prepare($query . " sdesc = ?, @@ -424,7 +424,7 @@ $_POST['in']['assign'], $_POST['in']['php_version'], $_POST['in']['php_os'], - $block_comment + $_POST['in']['block_user_comment'] )); // Add changelog entry

« previous php.webmaster (#8590) next »