Opened 14 years ago

Last modified 4 years ago

#6648 new enhancement (wontfix)

Hide fields instead of dropping them

Reported by: pbecker@… Owned by:
Priority: normal Component: SimpleTicketPlugin
Severity: normal Keywords:
Cc: falkb Trac Release: 0.11


We are using trac 0.11 as a feedback system for one of our websites, using links to the newticket URL with parameters to preset fields such as the component (along the lines of "http://my.trac/newticket?component=SomeComponent"). It would be nice if the form would include this preset value, but hide it from the user (i.e. use a hidden form field). This way we could people enter tickets attached to the right component without them being able to change it.

Attachments (0)

Change History (5)

comment:1 Changed 12 years ago by Ryan J Ollos

Cc: falkb added; anonymous removed
Summary: Use hidden fields instead of dropping themHide fields instead of dropping them

The BlackMagicTicketTweaksPlugin hides ticket fields by modifying the Genshi template stream (filter_stream in ITemplateStreamFilter). We might be able to do something similar here. I'd consider a patch for inclusion.

comment:2 Changed 12 years ago by Ryan J Ollos

Owner: changed from Noah Kantrowitz to Ryan J Ollos

comment:3 Changed 12 years ago by falkb

After reading this I wonder if SimpleTicketPlugin actually "hides" or "drops" when doing data['fields'] = [f for f in data['fields'] if f['name'] not in self.fields] (?). And if I'm right and it's "dropping", which other way would "hiding" go?

I'm quite interested in such stuff at least because of trac:#10320 but know nearly nothing about the internal architecture yet...

Last edited 7 years ago by Ryan J Ollos (previous) (diff)

comment:4 Changed 4 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Please use DynamicFieldsPlugin.

comment:5 Changed 4 years ago by Ryan J Ollos

Owner: Ryan J Ollos deleted
Status: closednew

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.