User: sits    
  Date: 07/07/02 02:54:12

  Modified:    .        CHANGELOG
               lib/Codestriker/Action ViewTopic.pm
  Log:
  * The topic comments tab count would incorrectly display the number
    of comment threads rather than the number of comments, when viewing
    the topic text.  This has now been fixed.
  
  
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /cvsroot/codestriker/codestriker/CHANGELOG,v
  retrieving revision 1.208
  retrieving revision 1.209
  diff -u -r1.208 -r1.209
  --- CHANGELOG 29 Jun 2007 12:58:06 -0000      1.208
  +++ CHANGELOG 2 Jul 2007 09:54:09 -0000       1.209
  @@ -29,6 +29,10 @@
     comments screen, as suggested by Nikita V. Borodikhin
     <[EMAIL PROTECTED]> to minimise confusion.
   
  +* The topic comments tab count would incorrectly display the number
  +  of comment threads rather than the number of comments, when viewing
  +  the topic text.  This has now been fixed.
  +
   Version 1.9.3
   
   * The project list screen now displays for each project, the total
  
  
  
  
  
  Index: ViewTopic.pm
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/lib/Codestriker/Action/ViewTopic.pm,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- ViewTopic.pm      1 Mar 2005 10:12:49 -0000       1.51
  +++ ViewTopic.pm      2 Jul 2007 09:54:12 -0000       1.52
  @@ -44,13 +44,11 @@
       # many distinct comment lines are there.
       my @comments = $topic->read_comments();
       my %comment_map = ();
  -    my $number_comments = 0;
       foreach my $comment (@comments) {
        my $key = $comment->{filenumber} . "|" . $comment->{fileline} . "|" .
            $comment->{filenew};
        if (! exists $comment_map{$key}) {
            $comment_map{$key} = 1;
  -         $number_comments++;
        }
       }
   
  @@ -153,9 +151,6 @@
       # Obtain the link to download the actual document text.
       $vars->{'download_url'} = $url_builder->download_url($topicid);
   
  -    # Indicate how many comments there are.
  -    $vars->{'number_comments'} = $number_comments;
  -
       # Fire the template on the topic heading information.
       my $template = Codestriker::Http::Template->new("viewtopic");
       $template->process($vars);
  
  
  

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits

Reply via email to