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 )
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 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>
Attachments (2)
Change History (4)
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 |
---|
comment:1 by , 7 years ago
Description: | modified (diff) |
---|
comment:2 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Committed to 1.2-stable in r16241, merged to trunk in r16242.