[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-762-ga8da871

Thomas Sibley trs at bestpractical.com
Tue Sep 14 09:50:14 EDT 2010


The branch, 3.9-trunk has been updated
       via  a8da8712bfd29fcaeb633a85d52c82ff74c31223 (commit)
      from  8367acb4767d43730c35120b6a9033195a7e39de (commit)

Summary of changes:
 share/html/Ticket/Elements/ShowRequestor |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit a8da8712bfd29fcaeb633a85d52c82ff74c31223
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Sep 14 09:52:47 2010 -0400

    Allow callers of ShowRequestor to override the default ticket list tab

diff --git a/share/html/Ticket/Elements/ShowRequestor b/share/html/Ticket/Elements/ShowRequestor
index 961479c..f8f1154 100755
--- a/share/html/Ticket/Elements/ShowRequestor
+++ b/share/html/Ticket/Elements/ShowRequestor
@@ -121,23 +121,23 @@ my $show_privileged = RT->Config->Get('ShowMoreAboutPrivilegedUsers');
 
 # Ticket list tabs
 my $selected = -1;
-my $current_status = RT->Config->Get('MoreAboutRequestorTicketList', $session{CurrentUser}) || 'Active';
+$DefaultTicketsTab ||= RT->Config->Get('MoreAboutRequestorTicketList', $session{CurrentUser}) || 'Active';
 my $status_link_text = {Active   => loc('Active Tickets'),
                         Inactive => loc('Inactive Tickets'),
                         All      => loc('All Tickets')};
 my $status_order = [qw/Active Inactive All/];
 $m->callback( CallbackName => 'AddStatus', status_link_text => \$status_link_text, status_order => \$status_order );
 
-unless ( $current_status eq 'None' ) {
+unless ( $DefaultTicketsTab eq 'None' ) {
     for (0 .. (@$status_order - 1)) {
         $selected = $_ && last
-            if $status_order->[$_] eq $current_status;
+            if $status_order->[$_] eq $DefaultTicketsTab;
     }
 }
 </%INIT>
 <%ARGS>
 $Ticket=>undef
-$TicketTemplate=>undef
+$DefaultTicketsTab => undef
 $ShowComments => 1
 $ShowTickets => 1
 $ShowGroups => 1

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


More information about the Rt-commit mailing list