Cannot update ticket_type with no name
|Reported by:||Owned by:||Remy Blank|
Description (last modified by )
Trac allow addition of Ticket Type named " " (without quote).
When I try to remove a Ticket Type named " " (by clicking the remove button), the system fails silently and nothing happend (the category is still there).
When I try to set the Ticket Type named " " as default, the system fails silently (the old default Ticket Type is still the default).
If I try to change the Order of my Ticket Type, I get the following exception:
Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 406, in dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "/opt/trac/plugins/TracWebAdmin-0.1.2dev_r4240-py2.4.egg/webadmin/web_ui.py", line 109, in process_request File "/opt/trac/plugins/TracWebAdmin-0.1.2dev_r4240-py2.4.egg/webadmin/ticket.py", line 367, in process_admin_request File "/usr/lib/python2.4/site-packages/trac/ticket/model.py", line 388, in update assert self.name, 'Cannot update %s with no name' % self.type AssertionError: Cannot update ticket_type with no name
Trac should not allow addition of Ticket Type named " " if it's not a valid name…