[Rt-devel] Customizing Tickets/Update.html to allow setting acustom field?

Tina Schade tina.schade at gmx.de
Wed Nov 24 08:38:57 EST 2004

----- Original Message ----- 
From: "Tabor J. Wells" <rt at fsckit.net>
To: <rt-devel at lists.bestpractical.com>
Sent: Tuesday, November 23, 2004 11:02 PM
Subject: [Rt-devel] Customizing Tickets/Update.html to allow setting acustom 

> My boss wants the Tickets/Update.html page to be customized to allow my RT
> users to set one of our custom fields from the Reply/Comment page. By
> adding:
> <& Elements/EditCustomFields, TicketObj => $TicketObj &>
> in the form I can display all of the custom fields (although really I only
> need one to be displayed) but selecting a value doesn't actually set it 
> when
> the ticket is updated.

You must call ProcessTicketCustomFieldUpdate (or so) from Web.pm in 
init-Block from Display.html. The init-Block from Display.html contains one 
part for creating new tickets and a second part for updating tickets by 
reply/ comment. In this part you have to add the methodcall for updating 
This looks similar like following:

@result = ProcessTicketCustomFieldValuesUpdate(Ticket => $Ticketid, %ARGS);

If you want to show only one customfield, try to implement your own 
mason-component. Use the code from editcustomfield.

Best regards,
> I've looked at Modify.html but I'm just not familiar enough with what I'm
> looking at to figure out what I need to add to allow the changed custom
> field value (these are all select value from a list fields FWIW) to stick 
> on
> updating.
> Also if there's some way I can just get one field to display instead of 
> all,
> I'd love to know how to do that as well.
> Thanks,
> Tabor
> -- 
> --------------------------------------------------------------------
> Tabor J. Wells                                         rt at fsckit.net
> Fsck It!                 Just another victim of the ambient morality
> _______________________________________________
> Rt-devel mailing list
> Rt-devel at lists.bestpractical.com
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

More information about the Rt-devel mailing list