Changeset 233 for trunk


Ignore:
Timestamp:
11/18/08 15:48:24 (15 years ago)
Author:
bas
Message:

email2trac.py.in:

  • default values for custom fields patch, #101
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r232 r233  
    88    Reported by: gmcgrath at princeton dot edu
    99    Fixed by: Bas van der Vlies
     10
     11  * Applied a patch for default values for custom ticket fields, closes #101
     12    Author: ben at fetchsoftworks dot com
     13    Applied by: Bas van der Vlies
    1014
    11152008-10-13
  • trunk/email2trac.py.in

    r232 r233  
    683683                        # default trac value
    684684                        #
    685                         value = self.get_config('ticket', 'default_%s' %(name) )
     685                        if not field.get('custom'):
     686                                value = self.get_config('ticket', 'default_%s' %(name) )
     687                        else:
     688                                value = field.get('value')
     689                                options = field.get('options')
     690                                if value and options and value not in options
     691                                        value = options[int(value)]
     692
    686693                        if self.DEBUG > 10:
    687694                                print 'trac.ini name %s = %s' %(name, value)
Note: See TracChangeset for help on using the changeset viewer.