logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

mantisbt/core user_api.php,1.80,1.81: msg#00104

Subject: mantisbt/core user_api.php,1.80,1.81
Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29896/core

Modified Files:
        user_api.php 
Log Message:
fix for 0004996: "Open and assigned to me" shows wrong number
  picked up resolved state from config


Index: user_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/user_api.php,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- user_api.php        19 Nov 2004 12:29:00 -0000      1.80
+++ user_api.php        21 Dec 2004 02:16:48 -0000      1.81
@@ -640,13 +640,12 @@
                        $t_where_prj = "project_id='$c_project_id' AND";
                }
 
-               $t_resolved     = RESOLVED;
-               $t_closed       = CLOSED;
+               $t_resolved     = config_get('bug_resolved_status_threshold');
 
                $query = "SELECT COUNT(*)
                                  FROM $t_bug_table
                                  WHERE $t_where_prj
-                                               status<>'$t_resolved' AND 
status<>'$t_closed' AND
+                                               status<'$t_resolved' AND
                                                handler_id='$c_user_id'";
                $result = db_query( $query );
 
@@ -667,13 +666,12 @@
                        $t_where_prj = "project_id='$c_project_id' AND";
                }
 
-               $t_resolved     = RESOLVED;
-               $t_closed       = CLOSED;
+               $t_resolved     = config_get('bug_resolved_status_threshold');
 
                $query = "SELECT COUNT(*)
                                  FROM $t_bug_table
                                  WHERE $t_where_prj
-                                                 status<>'$t_resolved' AND 
status<>'$t_closed' AND
+                                                 status<'$t_resolved' AND
                                                  reporter_id='$c_user_id'";
                $result = db_query( $query );
 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/


<Prev in Thread] Current Thread [Next in Thread>