Edgewall Software

Ticket #8069: ticket custom user list-trac0.11.3.patch

File ticket custom user list-trac0.11.3.patch, 709 bytes (added by Zachary Bedell <zbedell@…>, 3 years ago)

patch which implements this enhancement request

  • trac/ticket/api.py

    diff -ruw Trac-0.11.3-orig/trac/ticket/api.py Trac-0.11.3/trac/ticket/api.py
    old new  
    307307                'value': config.get(name + '.value', '') 
    308308            } 
    309309            if field['type'] == 'select' or field['type'] == 'radio': 
     310                if config.get(name + ".options") == "$userlist": 
     311                  self.eventually_restrict_owner(field, None) 
     312                else: 
    310313                field['options'] = config.getlist(name + '.options', sep='|') 
    311314                if '' in field['options']: 
    312315                    field['optional'] = True