[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-53-g3c82cc4

? sunnavy sunnavy at bestpractical.com
Mon May 17 01:31:29 EDT 2010


The branch, 3.8-trunk has been updated
       via  3c82cc42c9e1b0eac7421e97aa79210edadce8cc (commit)
      from  3e9597cebc8ed6d2fa1006f06c2b9b65ca450ca9 (commit)

Summary of changes:
 share/html/Ticket/Elements/ShowTransaction |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

- Log -----------------------------------------------------------------
commit 3c82cc42c9e1b0eac7421e97aa79210edadce8cc
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Mon May 17 13:08:38 2010 +0800

    reorder reply/comment in ticket history to make it consistent with menus: see #14415

diff --git a/share/html/Ticket/Elements/ShowTransaction b/share/html/Ticket/Elements/ShowTransaction
index 6ccbb0c..ecffe48 100755
--- a/share/html/Ticket/Elements/ShowTransaction
+++ b/share/html/Ticket/Elements/ShowTransaction
@@ -178,15 +178,6 @@ else {
     if ( $Attachments->[0] && $ShowTitleBarCommands ) {
         my $ticket = $Transaction->TicketObj;
         my $can_modify = $ticket->CurrentUserHasRight('ModifyTicket');
-        if ( $can_modify || $ticket->CurrentUserHasRight('ReplyToTicket') ) {
-            $titlebar_commands .=
-                "[<a href=\"".$UpdatePath
-              . "?id=" . $Transaction->Ticket
-              . "&QuoteTransaction=" . $Transaction->Id
-              . "&Action=Respond\">"
-              . loc('Reply')
-              . "</a>]&nbsp;";
-        }
         if ( $can_modify || $ticket->CurrentUserHasRight('CommentOnTicket') ) {
             $titlebar_commands .=
                 "[<a href=\"".$UpdatePath."?id="
@@ -196,6 +187,15 @@ else {
               . "&Action=Comment\">"
               . loc('Comment') . "</a>]";
         }
+        if ( $can_modify || $ticket->CurrentUserHasRight('ReplyToTicket') ) {
+            $titlebar_commands .=
+                "[<a href=\"".$UpdatePath
+              . "?id=" . $Transaction->Ticket
+              . "&QuoteTransaction=" . $Transaction->Id
+              . "&Action=Respond\">"
+              . loc('Reply')
+              . "</a>]&nbsp;";
+        }
         if ( $ticket->CurrentUserHasRight('ForwardMessage') ) {
             $titlebar_commands .=
                 "[<a href=\"". $ForwardPath

-----------------------------------------------------------------------


More information about the Rt-commit mailing list