Changeset 486


Ignore:
Timestamp:
10/11/10 11:07:31 (13 years ago)
Author:
bas
Message:

Fixed the calculation of number of ticket changes, closes #223

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r485 r486  
    2020     Applied by: Bas van der Vlies with some minor changes
    2121
     22   * email2trac: Used the wrong code to check number of ticket changes,
     23     closes #223.
     24     Author: stas dot agarkov add gmail dot com
     25     Applied by: Bas van der Vlies
    2226
    23271.6.0 (2010-8-10)
  • trunk/email2trac.py.in

    r485 r486  
    790790                ## How many changes has this ticket
    791791                #
    792                 cnum = len(tkt.get_changelog())
     792                # cnum = len(tkt.get_changelog())
     793                grouped = TicketModule(self.env).grouped_changelog_entries(tkt, self.db)
     794                cnum = sum(1 for e in grouped) + 1
     795
    793796
    794797                ## reopen the ticket if it is was closed
     
    22592262                        from trac.web.href import Href
    22602263                        from trac import util
     2264                        from trac.ticket.web_ui import TicketModule
     2265
    22612266                        #
    22622267                        # return  util.text.to_unicode(str)
     
    22762281                        from trac.core import TracError
    22772282                        from trac.perm import PermissionSystem
     2283                        from trac.ticket.web_ui import TicketModule
    22782284
    22792285                        #
     
    22922298                        from trac.core import TracError
    22932299                        from trac.perm import PermissionSystem
     2300                        from trac.ticket.web_ui import TicketModule
    22942301
    22952302                        #
Note: See TracChangeset for help on using the changeset viewer.