id summary reporter owner description type status priority milestone component version severity resolution keywords cc branch changelog apichanges internalchanges 11499 Eliminate redundant code in milestone and admin milestone templates / modules Ryan J Ollos Ryan J Ollos "An important step towards #3754 (see comment:7:ticket:3754) is to merge portions of the `milestone_edit.html` and `admin_milestones.html` pages. It may be possible to eliminate some redundant code in `trac.ticket.admin` and `trac.ticket.roadmap` as well." enhancement closed normal 1.1.2 ticket system normal fixed The `MilestoneModule` is used in `trac.ticket.admin.MilestoneAdminPanel` to eliminate redundant code. When milestone edit validations fail on the Milestone Admin page, a warning is added rather than redirecting to the error page. "Added methods to `MilestoneModule` class: * `get_default_due` * `save_milestone` Add method to `Milestone` class: * `get_num_tickets` New template `milestone_edit_form.html` for editing a milestone. "