Edgewall Software
Modify

Opened 7 years ago

Closed 7 years ago

#12892 closed defect (fixed)

Release date is unexpectedly populated on Version Admin detail page

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.2.3
Component: admin/web Version:
Severity: normal Keywords: version
Cc: Branch:
Release Notes:

The Release field on the Version edit page is no longer populated with the current datetime when the version release date is not set.

API Changes:
Internal Changes:

Description (last modified by Ryan J Ollos)

For a version with no release date, the Released field is automatically populated with the current datetime. I think it makes sense to pre-populate the field in the Add Version form, but not in the Modify Version form.

Proposed fix:

  • trac/ticket/templates/admin_versions.html

    diff --git a/trac/ticket/templates/admin_versions.html b/trac/ticket/templates/admin_versions.html
    index 4ef9883ee..b6b43b25e 100644
    a b  
    4141            <label>Released:<br />
    4242              <input type="text" id="releaseddate" class="trac-datetimepicker"
    4343                     name="time" size="${len(datetime_hint) + 1}"
    44                      value="${format_datetime(version.time)}"
     44                     value="${format_datetime(version.time) if version.time else None}"
    4545                     title="${_('Format: %(datehint)s', datehint=datetime_hint)}" />
    4646              <span class="trac-datetimehint" i18n:msg="datehint">Format: $datetime_hint</span>
    4747            </label>

Attachments (2)

Screen Shot 2017-08-13 at 17.48.10.png (24.6 KB ) - added by Ryan J Ollos 7 years ago.
Screen Shot 2017-08-13 at 17.47.59.png (24.5 KB ) - added by Ryan J Ollos 7 years ago.

Download all attachments as: .zip

Change History (4)

by Ryan J Ollos, 7 years ago

by Ryan J Ollos, 7 years ago

comment:1 by Ryan J Ollos, 7 years ago

Description: modified (diff)

comment:2 by Ryan J Ollos, 7 years ago

Resolution: fixed
Status: assignedclosed

Committed to 1.2-stable in r16241, merged to trunk in r16242.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


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