Milestone edit page should more clearly show when milestone doesn't exist
|Reported by:||Ryan J Ollos||Owned by:||Ryan J Ollos|
On navigating to a non-existent milestone and being redirected to the Milestone edit page, a notice is displayed to clearly indicate that the milestone does not yet exist.
When navigating from the Add new milestone button on the Roadmap page the path will be
/milestone?action=new and the user should have a good idea that the milestone does not yet exist (although it might be less clear when
&name=milestoneX is appended to the path resulting in the milestone name input having text).
In the case that a link is followed to a non-existing milestone the path will be
/milestone/milestoneX and it might be less clear that the milestone does not yet exist. We could give a clear indicator in this case:
The patch would be simple, and would not add a notice for the case that was first described, when the user follows the Add new milestone link.
commit 97d3d7d9c4be58309aa696474bf45dd5a749a605 Author: rjollos <firstname.lastname@example.org> Date: Tue Jul 1 10:23:37 2014 -0700 Add notice if milestone doesn't exist. diff --git a/trac/ticket/roadmap.py b/trac/ticket/roadmap.py index ab4c41d..bb53ea5 100644
a b class MilestoneModule(Component): 860 860 data['milestone_groups'] = group_milestones(milestones, 861 861 'TICKET_ADMIN' in req.perm) 862 862 else: 863 864 865 863 866 req.perm(milestone.resource).require('MILESTONE_CREATE') 864 867 865 868 chrome = Chrome(self.env)
Change History (7)
comment:5 by , 7 years ago
|Milestone:||next-stable-1.0.x → 1.0.2|
|Status:||new → assigned|