Edgewall Software
Modify

Opened 6 years ago

Last modified 2 years ago

#12459 new defect

Milestone edit page says 'retargeted to milestone "None"' (None milestone is missing)

Reported by: Jun Omae Owned by:
Priority: low Milestone: next-stable-1.4.x
Component: general Version:
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to reproduce:

  1. Visit /milestone/milestone2 page
  2. Click Edit milestone button
  3. Check Completed: checkbox
  4. Select None for Retarget associated open tickets to milestone: dropdown
  5. Submit

Proposed ad hoc patch:

  • trac/ticket/roadmap.py

    diff --git a/trac/ticket/roadmap.py b/trac/ticket/roadmap.py
    index 7690f0495..6c523c5db 100644
    a b class MilestoneModule(Component):  
    718718            add_notice(req, _('The tickets associated with milestone '
    719719                              '"%(name)s" have been retargeted to milestone '
    720720                              '"%(retarget)s".', name=milestone.name,
    721                               retarget=retarget_to))
     721                              retarget=retarget_to or ''))
    722722            new_values = {'milestone': retarget_to}
    723723            comment = _("Tickets retargeted after milestone deleted")
    724724            tn = BatchTicketNotifyEmail(self.env)
    class MilestoneModule(Component):  
    805805                add_notice(req, _('The open tickets associated with '
    806806                                  'milestone "%(name)s" have been retargeted '
    807807                                  'to milestone "%(retarget)s".',
    808                                   name=milestone.name, retarget=retarget_to))
     808                                  name=milestone.name,
     809                                  retarget=retarget_to or ''))
    809810                new_values = {'milestone': retarget_to}
    810811                comment = comment or \
    811812                          _("Open tickets retargeted after milestone closed")

Also, None phrase in retargeted milestone dropdown is a general word. It is difficult to translate. I think we should change to something better, e.g. no targeted milestone, etc…

Attachments (1)

20160419T185200.png (4.3 KB ) - added by Jun Omae 6 years ago.

Download all attachments as: .zip

Change History (4)

by Jun Omae, 6 years ago

Attachment: 20160419T185200.png added

comment:1 by Jun Omae, 6 years ago

Summary: Milestone edit page says 'retargetde to milestone "None"' (None milestone is missing)Milestone edit page says 'retargeted to milestone "None"' (None milestone is missing)

comment:2 by Ryan J Ollos, 5 years ago

Milestone: next-stable-1.0.xnext-stable-1.2.x

Moved ticket assigned to next-stable-1.0.x since maintenance of 1.0.x is coming to a close. Please move the ticket back if it's critical to fix on 1.0.x.

comment:3 by Ryan J Ollos, 2 years ago

Milestone: next-stable-1.2.xnext-stable-1.4.x

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.