[rt-users] Change default "Update Type" from Comments to Reply whenResolve is clicked

Mai Le mle at Niku.com
Wed Jan 12 19:32:29 EST 2005


I did this on mine to have Reply to Requestors as the default for
Resolve.

Changes to Update.html

my ($CommentDefault, $ResponseDefault);
Change this line:  if ($Action ne 'Respond') {  
To:

if ($Action ne 'Respond' && $DefaultStatus ne 'resolved') {

It's around line 160.  

-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Pei Ku
Sent: Tuesday, January 11, 2005 12:57 PM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] Change default "Update Type" from Comments to Reply
whenResolve is clicked


When you click on Resolve link in the Ticket view page, it takes you to
the page containing the form where you can resolve the ticket.  Note
that the "Update Type" defaults to "Comments (Not sent to requestors)".

How can I chage it so that it defaults to "Reply to Requestors"?

I've been staring at the code a bit; I think Ticket/Update.html is where
the magic happens:


<td><select name="UpdateType">
% if ($CanComment) {
  <option value="private" <%$ARGS{'UpdateType'} eq "private" ?
"SELECTED" : !$ARGS{'UpdateType'}&&$CommentDefault%>><&|/l&>Comments
(Not sent to requestors)</&></option> % } % if ($CanRespond) {
   <option value="response" <%$ARGS{'UpdateType'} eq "response" ?
"SELECTED" : !$ARGS{'UpdateType'}&&$ResponseDefault%>><&|/l&>Reply to
requestors</&></option> % } </select>



The HTML source does show the drop-down item Comments is SELECTED.  Now
I just need to figure out how to get "Reply to requestors" selected
instead...

thanks

Pei
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT wiki at http://wiki.bestpractical.com


CONFIDENTIALITY NOTICE: The information contained in this message and
or attachments is intended only for the person or entity to which it is
addressed and may contain confidential and/or privileged material. Any
review, retransmission, dissemination, copying, or other use of this
information by persons or entities other than the intended recipient is
prohibited. If you received this e-mail or its attachments in error, 
please contact the sender and delete the material from any system and 
destroy any copies.



More information about the rt-users mailing list