cvs: php-bugs-web / bug.php

From: Date: Sun, 19 Jan 2003 11:27:10 +0000
Subject: cvs: php-bugs-web / bug.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-15175@lists.php.net to get a copy of this message
wez Sun Jan 19 06:27:10 2003 EDT Modified files: /php-bugs-web bug.php Log: Expand the "comment for bogusifying" idea to include quickfixes that set the status to bogus. Index: php-bugs-web/bug.php diff -u php-bugs-web/bug.php:1.46 php-bugs-web/bug.php:1.47 --- php-bugs-web/bug.php:1.46 Sat Jan 18 20:13:49 2003 +++ php-bugs-web/bug.php Sun Jan 19 06:27:10 2003 @@ -117,7 +117,10 @@ $errors[] = "The username or password you supplied was incorrect."; } - if ($in['resolve']) { + if ((($in['status'] == 'Bogus' && $bug['status'] != 'Bogus') || $RESOLVE_REASONS[$in['resolve']]['status'] == 'Bogus') + && strlen(trim($ncomment)) == 0) { + $errors[] = "You must provide a comment when marking a bug 'Bogus'"; + } elseif ($in['resolve']) { if (!$trytoforce && $RESOLVE_REASONS[$in['resolve']]['status'] == $bug['status']) { $errors[] = "The bug is already marked '$bug[status]'. (Submit again to ignore this.)"; } @@ -128,10 +131,6 @@ $ncomment = addslashes($RESOLVE_REASONS[$in['resolve']]['message']) . "\n\n$ncomment"; } - } - - if ($in['status'] == 'Bogus' && $bug['status'] != 'Bogus' && strlen(trim($ncomment)) == 0) { - $errors[] = "You must provide a comment when marking a bug 'Bogus'"; } if (!$errors && !($errors = incoming_details_are_valid($in))) {

« previous php.mirrors (#15175) next »