Modify ↓
Opened 17 years ago
Closed 17 years ago
#5770 closed defect (worksforme)
Bug downloading roadmap as ical when all priorities have been deleted
Reported by: | trasgu | Owned by: | Christopher Lenz |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | roadmap | Version: | 0.10.4 |
Severity: | normal | Keywords: | ical roadmap bug |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When no priorities are set, if you try to export roadmap as ical you get
Oops... Trac detected an internal error: 'priority' Traceback (most recent call last) ...
Here is a diff with the fix:
--- model.back.py 2007-03-06 11:15:50.000000000 +0100 +++ model.py 2007-03-06 11:05:00.000000000 +0100 @@ -104,7 +104,10 @@ self.values[name] = value def __getitem__(self, name): - return self.values[name] + if self.values.has_key(name): + return self.values[name] + else: + return ''; def __setitem__(self, name, value): """Log ticket modifications so the table ticket_change can be updated"""
Attachments (0)
Note:
See TracTickets
for help on using tickets.
In milestone:0.11,
__getitem__
does areturn self.values.get(name)
, so this is not a problem anymore.