Edgewall Software

Ticket #3990: TicketQueryMacroAddTimestampFields.diff

File TicketQueryMacroAddTimestampFields.diff, 0.7 KB (added by ilias@…, 2 years ago)

(supersedes previous patch) woks fine, but misses Timestamp formatting in textfields.

  • api.py

     
    142142            field = {'name': name, 'type': 'text', 'label': name.title()} 
    143143            fields.append(field) 
    144144 
     145        # Timestamp fields 
     146        fields.append( {'name': 'time', 'type': 'text', 'label': 'Created'} ) 
     147        fields.append( {'name': 'changetime', 'type': 'text', 'label': 'Modified'} )                
     148 
    145149        for field in self.get_custom_fields(): 
    146150            if field['name'] in [f['name'] for f in fields]: 
    147151                self.log.warning('Duplicate field name "%s" (ignoring)',