Ticket #6648 (new enhancement)

Opened 3 years ago

Last modified 1 year ago

Hide fields instead of dropping them

Reported by: pbecker@itee.uq.edu.au Assigned to: rjollos
Priority: normal Component: SimpleTicketPlugin
Severity: normal Keywords:
Cc: falkb Trac Release: 0.11

Description

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

Change History

12/03/11 00:58:15 changed by rjollos

  • cc set to falkb.
  • summary changed from Use hidden fields instead of dropping them to Hide 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.

12/03/11 01:42:30 changed by rjollos

  • owner changed from coderanger to rjollos.

12/05/11 09:05:35 changed 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 http://trac.edgewall.org/ticket/10320 but know nearly nothing about the internal architecture yet...


Add/Change #6648 (Hide fields instead of dropping them)




Change Properties
Action