Edgewall Software

Ticket #8069: ticket_custom_user_list-trac0.12.dev.patch

File ticket_custom_user_list-trac0.12.dev.patch, 794 bytes (added by Andrew C Martin <andrew.c.martin@…>, 6 months ago)

patch for trac 0.12-stable

  • trac/ticket/api.py

     
    370370                'value': config.get(name + '.value', '') 
    371371            } 
    372372            if field['type'] == 'select' or field['type'] == 'radio': 
    373                 field['options'] = config.getlist(name + '.options', sep='|') 
     373                if config.get(name + ".options") == "$userlist":  
     374                    self.eventually_restrict_owner(field, None)  
     375                else: 
     376                    field['options'] = config.getlist(name + '.options', sep='|') 
    374377                if '' in field['options']: 
    375378                    field['optional'] = True 
    376379                    field['options'].remove('')