cvs: php-bugs-web / bug.php
[email protected] ("Felipe Pena")
| Newsgroups | php.webmaster |
|---|---|
| Message-ID | <cvsfelipe1227638935@cvsserver> |
felipe Tue Nov 25 18:48:55 2008 UTC
Modified files:
/php-bugs-web bug.php
Log:
- Fix logic
http://cvs.php.net/viewvc.cgi/php-bugs-web/bug.php?r1=1.96&r2=1.97&diff_format=u
Index: php-bugs-web/bug.php
diff -u php-bugs-web/bug.php:1.96 php-bugs-web/bug.php:1.97
--- php-bugs-web/bug.php:1.96 Thu Nov 20 17:19:24 2008
+++ php-bugs-web/bug.php Tue Nov 25 18:48:55 2008
@@ -179,7 +179,8 @@
if ($in['status'] == 'Bogus' && !in_array($bug['status'], array ('Bogus', 'Closed', 'Duplicate', 'No feedback', 'Wont fix'))
&& strlen(trim($ncomment)) == 0) {
$errors[] = "You must provide a comment when marking a bug 'Bogus'";
- } elseif ($in['status'] == 'To be documented' || ($in['resolve'] && $RESOLVE_REASONS[$in['resolve']]['status'] == 'To be documented')) {
+ } elseif (($in['status'] == 'To be documented' && $bug['status'] != $in['status']) ||
+ ($in['resolve'] && $RESOLVE_REASONS[$in['resolve']]['status'] == 'To be documented')) {
/* Require explanation */
if (strlen(trim($ncomment)) == 0) {
$errors[] = "You must provide a comment to help in the feature/issue documentation";