#925: [PATCH] Allow wiki syntax in labels for custom fields
----------------------------------+-----------------------------------------
Reporter: pkou <pkou at ua.fm> | Owner: jonas
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: ticket system | Version: devel
Severity: normal | Resolution:
Keywords: |
----------------------------------+-----------------------------------------
Changes (by Markus Tacker <[EMAIL PROTECTED]>):
* cc: => [EMAIL PROTECTED]
Comment:
This is the patch against [2678].
Why hasn't this been implemented yet?
{{{
Index: trac/ticket/api.py
===================================================================
--- trac/ticket/api.py (revision 2678)
+++ trac/ticket/api.py (working copy)
@@ -18,6 +18,7 @@
from trac.core import *
from trac.perm import IPermissionRequestor
from trac.wiki import IWikiSyntaxProvider
+from trac.wiki import wiki_to_oneliner
from trac.Search import ISearchSource, query_to_sql, shorten_result
@@ -108,7 +109,7 @@
'name': name,
'type': self.config.get('ticket-custom', name),
'order': int(self.config.get('ticket-custom', name +
'.order', '0')),
- 'label': self.config.get('ticket-custom', name +
'.label', ''),
+ 'label': wiki_to_oneliner(self.config.get('ticket-
custom', name + '.label', ''), self.env, self.env.get_db_cnx()),
'value': self.config.get('ticket-custom', name +
'.value', '')
}
if field['type'] == 'select' or field['type'] == 'radio':
}}}
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/925>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets