[jboss-cvs] jboss-portal/forums/src/main/org/jboss/portlet/forums/commands/post ...

Boleslaw Dawidowicz bdaw at o2.pl
Wed Aug 23 09:38:08 EDT 2006


  User: bdaw    
  Date: 06/08/23 09:38:08

  Modified:    forums/src/main/org/jboss/portlet/forums/commands/post  Tag:
                        JBoss_Portal_Branch_2_4 VoteTopicCommand.java
  Log:
  small bug in forums poll voting
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.6.1   +2 -2      jboss-portal/forums/src/main/org/jboss/portlet/forums/commands/post/VoteTopicCommand.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: VoteTopicCommand.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-portal/forums/src/main/org/jboss/portlet/forums/commands/post/VoteTopicCommand.java,v
  retrieving revision 1.5
  retrieving revision 1.5.6.1
  diff -u -b -r1.5 -r1.5.6.1
  --- VoteTopicCommand.java	8 Oct 2005 22:12:52 -0000	1.5
  +++ VoteTopicCommand.java	23 Aug 2006 13:38:08 -0000	1.5.6.1
  @@ -22,7 +22,7 @@
   /**
    * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
    * @author <a href="">Boleslaw Dawidowicz</a>
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.5.6.1 $
    */
   public class VoteTopicCommand
      extends TopicCommand
  @@ -70,7 +70,7 @@
               e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            }
            Poll poll = topic.getPoll();
  -         poll.getVoted().add(poster.getUserId());
  +         poll.getVoted().add(new Integer(poster.getUserId()));
            int index = 0;
            PollOption po = null;
            for (Iterator iter = poll.getOptions().iterator(); iter.hasNext() && (index <= voteOptionId); index++)
  
  
  



More information about the jboss-cvs-commits mailing list