Opened 15 years ago
Last modified 12 years ago
#4587 closed defect
Traceback when no milestones are defined — at Initial Version
Reported by: | anonymous | Owned by: | Sam Bloomquist |
---|---|---|---|
Priority: | normal | Component: | ScrumBurndownPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
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:
- datadraw_graph? = req.hdfdraw_graph? = True
- self.update_burndown_data() 170.
- databurndown_data? = req.hdfburndown_data? = []
- databurndown_data? = req.hdfburndown_data? = self.get_burndown_data(db, selected_milestone, components, selected_component) 173.
- add_stylesheet(req, 'hw/css/burndown.css') 175.
- self.update_burndown_data() 177.
Change History (1)
Changed 15 years ago by
Attachment: | trac-scrumburndownplugin-add-validation.patch added |
---|
Note: See
TracTickets for help on using
tickets.
Adds some basic validation, so trac shouldn't crash