Commit:    861c7583817c8e79879baaa018ad9397a86eda93
Author:    Daniel Convissor <[email protected]>         Sat, 4 
Jan 2014 21:12:16 -0500
Parents:   1d6efd542b8f5858536c099b32052ef7a891aa07
Branches:  master

Link:       
http://git.php.net/?p=web/bugs.git;a=commitdiff;h=861c7583817c8e79879baaa018ad9397a86eda93

Log:
- Also for "Add Comment" tab: replace textarea with message if user comments 
are blocked. (Bug #66392)

Bugs:
https://bugs.php.net/66392

Changed paths:
  M  www/bug.php


Diff:
diff --git a/www/bug.php b/www/bug.php
index 1b4f389..183b354 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -1031,7 +1031,19 @@ if (!empty($_POST['captcha']) && 
empty($ok_to_submit_report)) {
        <div>
                <input type="hidden" name="id" value="<?php echo $bug_id; ?>" />
                <input type="hidden" name="edit" value="<?php echo $edit; ?>" />
+
+       <?php
+       if ($bug['block_user_comment'] == 'Y' && $logged_in != 'developer') {
+               echo 'Further comment on this bug is unnecessary.';
+       } elseif ($bug['status'] === 'Spam' && $logged_in != 'developer') {
+               echo 'This bug has a SPAM status, so no additional comments are 
needed.';
+       } else {
+       ?>
                <textarea cols="80" rows="10" name="ncomment" wrap="soft"><?php 
echo htmlspecialchars($ncomment); ?></textarea>
+       <?php
+       }
+       ?>
+
                <br /><input type="submit" name="preview" 
value="Preview">&nbsp;<input type="submit" value="Submit" />
        </div>


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to