Edgewall Software
Modify

Opened 4 years ago

Closed 4 years ago

#13300 closed enhancement (fixed)

Use TicketFieldList in ticket templates and remove fields_map

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.4.2
Component: ticket system Version:
Severity: normal Keywords: refactoring
Cc: Branch:
Release Notes:
API Changes:
  • The fields list passed to ticket templates is an instance of TicketFieldList. The change is backward compatible because TicketFieldList inherits from List.
  • The fields_map passed to ticket templates is deprecated and will be removed in 1.5.1. Use fields.by_name instead. Example: fields[fields_map['status']]fields.by_name('status').
Internal Changes:

Description

We can deprecate fields_map on 1.4-stable and refactor to use fields in the template if fields is an instance of TicketFieldList (from trac.ticket.api).

Attachments (0)

Change History (2)

comment:1 by Ryan J Ollos, 4 years ago

API Changes: modified (diff)

Proposed changes:

comment:2 by Ryan J Ollos, 4 years ago

Resolution: fixed
Status: assignedclosed

TicketFieldList changed committed to 1.4-stable in r17355, merged in r17356.

fields_map removed on trunk in r17357.

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.