Edgewall Software

Opened 4 years ago

Last modified 4 years ago

#13300 closed enhancement

Use TicketFieldList in ticket templates and remove fields_map — at Version 1

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).

Change History (1)

comment:1 by Ryan J Ollos, 4 years ago

API Changes: modified (diff)

Proposed changes:

Note: See TracTickets for help on using tickets.