#7791 closed defect (fixed)
Don't allow tickets to be reassigned to completed/closed milestones
Reported by: | mongoose643 | Owned by: | Remy Blank |
---|---|---|---|
Priority: | normal | Milestone: | 0.11.3 |
Component: | roadmap | Version: | 0.10.4 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When on the "Edit Milestone" page and you are ready to reassign a leftover tickets to a new milestone you see a list of every milestone every created.
This list should be reduced to open milestones and not include past milestones that have been marked as complete.
Attachments (1)
Change History (6)
comment:1 by , 16 years ago
Milestone: | 0.11.2 → 0.11.3 |
---|---|
Owner: | set to |
comment:2 by , 16 years ago
We could eventually use the same logic here as in the ticket view and edit pages, i.e. show only the open milestones, except for TICKET_ADMIN (see #1440).
by , 16 years ago
Attachment: | 7791-milestone-grouping-r7763.patch added |
---|
Patch against 0.11-stable grouping milestones on milestone edit and milestone delete pages
comment:3 by , 16 years ago
The patch above groups the milestones in the select boxes of the milestone edit and delete pages, in the same way as the ticket edit page. It only shows completed milestones if the user has TICKET_ADMIN
permission.
I'm not sure about how to check this, however. Currently, I use the following:
'TICKET_ADMIN' in req.perm(milestone.resource)
That is, I check for TICKET_ADMIN
on the milestone. On the ticket edit page, the check is on the ticket itself, but this doesn't apply here, as there are several tickets to be modified, and checking the permission on all of them seems overkill. Should I rather do the following?
'TICKET_ADMIN' in req.perm
That's what the admin module does.
comment:4 by , 16 years ago
Component: | admin/web → roadmap |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed in [7772]. I finally used the following to check for TICKET_ADMIN
permission:
'TICKET_ADMIN' in req.perm
comment:5 by , 10 years ago
In #11892 I propose moving grouped_milestones
to the trac.ticket.roadmap
module. Any feedback on the proposed change is appreciated.
Sorry, no more tickets for 0.11.2.