Ticket #3281: optional-keywords.patch
| File optional-keywords.patch, 0.8 kB (added by wkornew, 2 years ago) |
|---|
-
trac/ticket/api.py
68 68 [wiki:TracTickets#AssigntoasDropDownList AssignToAsDropDownList] 69 69 (''since 0.9'').""") 70 70 71 show_keywords = BoolOption('ticket', 'show_keywords', 'true', 72 """Show the keywords field for tickets. 73 (''since 0.10'').""") 74 71 75 # Public API 72 76 73 77 def get_available_actions(self, ticket, perm_): … … 136 140 137 141 # Advanced text fields 138 142 for name in ('keywords', 'cc', ): 143 if name == 'keywords' and not self.show_keywords: 144 continue 139 145 field = {'name': name, 'type': 'text', 'label': name.title()} 140 146 fields.append(field) 141 147
