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

From: Date: Thu, 18 Nov 2010 22:27:53 +0000
Subject: svn: /web/php-bugs/trunk/www/ bug.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-9485@lists.php.net to get a copy of this message
felipe Thu, 18 Nov 2010 22:27:53 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=305531 Log: - Hide the "add comment" menu item to private bugs Changed paths: U web/php-bugs/trunk/www/bug.php Modified: web/php-bugs/trunk/www/bug.php =================================================================== --- web/php-bugs/trunk/www/bug.php 2010-11-18 21:54:28 UTC (rev 305530) +++ web/php-bugs/trunk/www/bug.php 2010-11-18 22:27:53 UTC (rev 305531) @@ -141,7 +141,7 @@ $show_bug_info = ($bug['private'] == 'Y' ? false : true); // Just the reporter and trusted developer should see the private report info -if ($bug['private'] == 'Y' && $edit == 1 && $is_trusted_developer) { +if ($bug['private'] == 'Y' && $is_trusted_developer) { $show_bug_info = true; } @@ -665,7 +665,7 @@ <?php if ($bug_id !== 'PREVIEW') { echo '<div class="controls">', "\n", control(0, 'View'), - control(3, 'Add Comment'), + ($bug['private'] == 'N' ? control(3, 'Add Comment') : ''), control(1, 'Developer'), control(2, 'Edit'), '</div>', "\n"; @@ -921,7 +921,7 @@ ?> <?php - if ($edit == 3) { + if ($edit == 3 && $bug['private'] == 'N') { if ($bug['status'] === 'Spam') { echo 'This bug has a SPAM status, so no additional comments are needed.';

« previous php.webmaster (#9485) next »