logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

mantisbt/core bugnote_api.php,1.31,1.32 email_api.php,1.108,1.109: msg#00006

Subject: mantisbt/core bugnote_api.php,1.31,1.32 email_api.php,1.108,1.109
Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6190/core

Modified Files:
        bugnote_api.php email_api.php 
Log Message:
Fixed some limitations that were reported in a MantisConnect issue (see 
http://www.futureware.biz/mantis/view.php?id=126).

Index: bugnote_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/bugnote_api.php,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- bugnote_api.php     12 Feb 2005 20:01:10 -0000      1.31
+++ bugnote_api.php     4 Mar 2005 13:34:56 -0000       1.32
@@ -22,12 +22,15 @@
        # Bugnote Data Structure Definition
        #===================================
        class BugnoteData {
+               var $id;
+               var $bug_id;
+               var $reporter_id;
                var $note;
                var $view_state;
-               var $type;
-               var $attr;
-               var $reporter_name;
+               var $date_submitted;
                var $last_modified;
+               var $note_type;
+               var $note_attr;
        }
 
        #===================================
@@ -316,12 +319,13 @@
 
                                $t_bugnote = new BugnoteData;
 
+                               $t_bugnote->id            = $row['id'];
                                $t_bugnote->note          = $row['note'];
                                $t_bugnote->view_state    = $row['view_state'];
-                               $t_bugnote->reporter_name = user_get_name( 
$row['reporter_id'] );
+                               $t_bugnote->reporter_id   = $row['reporter_id'];
                                $t_bugnote->last_modified = db_unixtimestamp( 
$row['last_modified'] );
-                               $t_bugnote->type          = $row['note_type'];
-                               $t_bugnote->attr          = $row['note_attr'];
+                               $t_bugnote->note_type     = $row['note_type'];
+                               $t_bugnote->note_attr     = $row['note_attr'];
 
                                $t_bugnotes[] = $t_bugnote;
                        }

Index: email_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/email_api.php,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -d -r1.108 -r1.109
--- email_api.php       26 Feb 2005 15:16:46 -0000      1.108
+++ email_api.php       4 Mar 2005 13:34:56 -0000       1.109
@@ -953,7 +953,7 @@
                # format bugnotes
                foreach ( $p_visible_bug_data['bugnotes'] as $t_bugnote ) {
                        $t_last_modified = date( $t_normal_date_format, 
$t_bugnote->last_modified );
-                       $t_string = ' '.$t_bugnote->reporter_name.' - 
'.$t_last_modified.' ';
+                       $t_string = ' '. user_get_name( $t_bugnote->reporter_id 
) . ' - ' . $t_last_modified . ' ';
 
                        $t_message .= $t_email_separator2 . " \n";
                        $t_message .= $t_string . " \n";



-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click


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