Opened 7 years ago
Last modified 7 years ago
#12892 closed defect
Release date is unexpectedly populated on Version Admin detail page — at Initial Version
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
For a version with no release date, the Release field is automatically populated with the current datetime. I think it makes sense to pre-populate the field in the New Version form, but not in the Version edit 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 41 41 <label>Released:<br /> 42 42 <input type="text" id="releaseddate" class="trac-datetimepicker" 43 43 name="time" size="${len(datetime_hint) + 1}" 44 value="${format_datetime(version.time) }"44 value="${format_datetime(version.time) if version.time else None}" 45 45 title="${_('Format: %(datehint)s', datehint=datetime_hint)}" /> 46 46 <span class="trac-datetimehint" i18n:msg="datehint">Format: $datetime_hint</span> 47 47 </label>
Change History (2)
by , 7 years ago
Attachment: | Screen Shot 2017-08-13 at 17.48.10.png added |
---|
by , 7 years ago
Attachment: | Screen Shot 2017-08-13 at 17.47.59.png added |
---|
Note:
See TracTickets
for help on using tickets.