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:

  1. datadraw_graph? = req.hdfdraw_graph? = True
  2. self.update_burndown_data() 170.
  3. databurndown_data? = req.hdfburndown_data? = []
  4. databurndown_data? = req.hdfburndown_data? = self.get_burndown_data(db, selected_milestone, components, selected_component) 173.
  5. add_stylesheet(req, 'hw/css/burndown.css') 175.
  6. self.update_burndown_data() 177.

Change History (1)

Changed 15 years ago by anonymous

Adds some basic validation, so trac shouldn't crash

Note: See TracTickets for help on using tickets.