Editing a Custom Field on Resolve

As promised, here is a patch against 3.0.10 that will allow you to
edit a Custom Field when you try to resolve a ticket. It only works if
the default action is resolve. It won’t work if you click reply and
then change the status to resolve.

To use the patch, copy /path/to/rt3/share/html/Ticket/Update.html to
/path/to/rt3/local/html/Ticket/Update.html. Apply the attached
patch. Edit $CustomFieldName in the <%INIT> section to match the name
of the Custom Field you want to display.

Hope this is helpful to people.

Michael
Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/
“I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”

Update-resolve-cf.patch (1.34 KB)

Instead of use if $Defaultstatus use this:

if ($ARGS{‘Status’} eq ‘resolved’) {

It will also work if you click reply and then change it to resolve.

Samuel

P.S. When we discuss about the code, shouldn’t it be on rt-devel?-----Original Message-----
From: Michael S. Liebman [mailto:m-liebman@northwestern.edu]
Sent: Friday,16 April,2004 21:28
To: rt-users@lists.bestpractical.com
Subject: [Rt-users] Editing a Custom Field on Resolve

As promised, here is a patch against 3.0.10 that will allow you to edit a Custom Field when you try to resolve a ticket. It only works if the default action is resolve. It won’t work if you click reply and then change the status to resolve.

To use the patch, copy /path/to/rt3/share/html/Ticket/Update.html to /path/to/rt3/local/html/Ticket/Update.html. Apply the attached patch. Edit $CustomFieldName in the <%INIT> section to match the name of the Custom Field you want to display.

Hope this is helpful to people.

Michael
Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/ “I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”