cvs: phpweb / bugs.php

From: Date: Fri, 27 Jul 2001 16:04:02 +0000
Subject: cvs: phpweb / bugs.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-5749@lists.php.net to get a copy of this message
sniper Fri Jul 27 12:04:02 2001 EDT Modified files: /phpweb bugs.php Log: If report was in feedback state, let the user open or close it. Index: phpweb/bugs.php diff -u phpweb/bugs.php:1.171 phpweb/bugs.php:1.172 --- phpweb/bugs.php:1.171 Sat Jul 21 18:56:10 2001 +++ phpweb/bugs.php Fri Jul 27 12:04:02 2001 @@ -545,8 +545,8 @@ $state_types = array ( "Open" => 2, "Closed" => 2, - "Critical" => 1, "Duplicate" => 2, + "Critical" => 1, "Assigned" => 1, "Analyzed" => 1, "Suspended" => 1, @@ -557,9 +557,14 @@ "All" => 0 ); - /* regular users can only pick states with type = 1 for unclosed bugs */ + /* regular users can only pick states with type 2 for unclosed bugs */ if($state != "All" && $state_types[$state] == 1 && $user_mode == 2) { - echo "<option>$state</option>\n"; + /* If state was 'Feedback', set state to 'Open' automatically. */ + if($state == "Feedback") { + echo "<option>Open</option>\n"; + } else { + echo "<option>$state</option>\n"; + } if($state != "Bogus") echo "<option>Closed</option>\n"; } else { foreach($state_types as $type => $mode) {

« previous php.mirrors (#5749) next »