Edgewall Software

Changeset 7372

Show
Ignore:
Timestamp:
07/22/2008 10:10:12 AM (5 weeks ago)
Author:
cboos
Message:

Don't retarget tickets for edited milestones that are not set to completed at the same time.

Closes #5941.

Patch contributed by Remy Blank.

Location:
branches/0.11-stable/trac/ticket
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11-stable/trac/ticket/roadmap.py

    r7351 r7372  
    645645            milestone.update() 
    646646            # eventually retarget opened tickets associated with the milestone 
    647             if 'retarget' in req.args: 
     647            if 'retarget' in req.args and completed: 
    648648                cursor = db.cursor() 
    649649                cursor.execute("UPDATE ticket SET milestone=%s WHERE " 
  • branches/0.11-stable/trac/ticket/templates/milestone_edit.html

    r7166 r7372  
    6767            <py:if test="milestones"> 
    6868              <br/> 
    69               <input type="checkbox" id="retarget" name="retarget" checked="checked" /> 
     69              <input type="checkbox" id="retarget" name="retarget" checked="${not milestone.completed or None}" /> 
    7070              <label>Retarget associated open tickets to milestone: 
    7171                <select id="target" name="target" py:with="t = req.args.get('target')">