Changeset 220


Ignore:
Timestamp:
10/09/08 16:28:02 (13 years ago)
Author:
bas
Message:

email2trac.py.in:

  • update_ticket_fields must be place after the re-opening a closed ticket
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r219 r220  
    581581                # Must we update ticket fields
    582582                #
    583                 update_tkt_fields = dict()
     583                update_fields = dict()
    584584                try:
    585585                        nr, keywords = string.split(result.group('ticketnr_fields'), '?')
    586                         update_tkt_fields = self.str_to_dict(keywords)
     586                        update_fields = self.str_to_dict(keywords)
    587587
    588588                        # Strip '#'
     
    611611                        return False
    612612
    613                 # Must we update some ticket fields properties
    614                 #
    615                 if update_tkt_fields:
    616                         self.update_ticket_fields(tkt, update_tkt_fields)
    617 
    618                 body_text = self.get_body_text(m)
    619 
    620                 # reopen the ticket if is was closed
     613                # reopen the ticket if it is was closed
     614                # We must use the ticket workflow framework
    621615                #
    622616                if tkt['status'] in ['closed']:
    623617                        tkt['status'] = 'reopened'
    624618                        tkt['resolution'] = ''
     619
     620                # Must we update some ticket fields properties
     621                #
     622                if update_fields:
     623                        self.update_ticket_fields(tkt, update_fields)
     624
     625                body_text = self.get_body_text(m)
    625626
    626627                if self.EMAIL_HEADER:
Note: See TracChangeset for help on using the changeset viewer.