[rt-devel] [PATCH] Select the correct default menu option for Reply/Comment dropdown

Tammy Dugan tdugan at progeny.com
Fri Feb 27 15:04:45 EST 2004


This patch makes sure that the Reply/Comment dropdown defaults to
Comment in general, Comment when the user clicks Comment, and Reply when
the user clicks Reply.

-------------- next part --------------
Index: html/Ticket/Update.html
===================================================================
--- html/Ticket/Update.html	(revision 14778)
+++ html/Ticket/Update.html	(revision 14779)
@@ -143,7 +143,7 @@
 # for the convenience:
 
 my ($CommentDefault, $ResponseDefault);
-if (($Action eq 'Comment') or ($ARGS{'UpdateType'} eq 'private')) {
+if ($Action ne 'Respond') {
    $CommentDefault = "SELECTED"; 
 } else {
     $ResponseDefault = "SELECTED";
Index: html/Ticket/Elements/Tabs
===================================================================
--- html/Ticket/Elements/Tabs	(revision 14778)
+++ html/Ticket/Elements/Tabs	(revision 14779)
@@ -133,7 +133,7 @@
     if ( $Ticket->Status ne 'resolved' ) {
         $actions->{'B'} = {
 
-            path => "Ticket/Update.html?Action=Comment&DefaultStatus=resolved&id=" . $id,
+            path => "Ticket/Update.html?Action=Respond&DefaultStatus=resolved&id=" . $id,
             title => loc('Resolve') };
     }
     if ( $Ticket->Status ne 'open' ) {


More information about the Rt-devel mailing list