Opened 15 years ago

Last modified 12 years ago

#4587 closed defect

Traceback when no milestones are defined — at Version 2

Reported by: anonymous Owned by: Ryan J Ollos
Priority: normal Component: ScrumBurndownPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by Ryan J Ollos)

When no milestones are defined in a project, selecting the burndown tab results in a traceback. This should be fixed to display something useful, or at least not crash trac.

Code fragment:

 168. data['draw_graph'] = req.hdf['draw_graph'] = True
 169. self.update_burndown_data()
 170.
 171. data['burndown_data'] = req.hdf['burndown_data'] = []
 172. data['burndown_data'] = req.hdf['burndown_data'] = self.get_burndown_data(db, selected_milestone, components, selected_component)
 173.
 174. add_stylesheet(req, 'hw/css/burndown.css')
 175.
 176. self.update_burndown_data()
 177.

Change History (3)

Changed 15 years ago by anonymous

Adds some basic validation, so trac shouldn't crash

comment:1 Changed 15 years ago by anonymous

Owner: changed from Sam Bloomquist to daan

comment:2 Changed 12 years ago by Ryan J Ollos

Description: modified (diff)
Owner: changed from daan to Ryan J Ollos
Status: newassigned
Note: See TracTickets for help on using tickets.