Edgewall Software

Ticket #930: patch-custompreview-r1055.diff

File patch-custompreview-r1055.diff, 619 bytes (added by pkou <pkou at ua.fm>, 8 years ago)

Patch for the defect

  • trac/Ticket.py

     
    448448 
    449449        if preview: 
    450450            # Use user supplied values 
    451             for field in Ticket.std_fields: 
    452                 if self.args.has_key(field) and field != 'reporter': 
    453                     ticket[field] = self.args.get(field) 
     451            ticket.populate(self.args) 
    454452            self.req.hdf.setValue('ticket.action', action) 
    455453            reporter_id = self.args.get('author') 
    456454            comment = self.args.get('comment')