Commit 43a33bb0 authored by Alex Vandiver's avatar Alex Vandiver
Browse files

Merge branch '4.2/more-about-requestor-tickets' into 4.2-trunk

parents 8ad6d22a ce913d52
...@@ -162,17 +162,20 @@ my $status_link_text = {Active => loc('Active Tickets'), ...@@ -162,17 +162,20 @@ my $status_link_text = {Active => loc('Active Tickets'),
my $status_order = [qw/Active Inactive All/]; my $status_order = [qw/Active Inactive All/];
$m->callback( CallbackName => 'AddStatus', status_link_text => \$status_link_text, status_order => \$status_order ); $m->callback( CallbackName => 'AddStatus', status_link_text => \$status_link_text, status_order => \$status_order );
unless ( $DefaultTicketsTab eq 'None' ) { $ShowTickets = 0 if $DefaultTicketsTab eq 'None';
my $TicketTemplate;
if ($ShowTickets) {
for (0 .. (@$status_order - 1)) { for (0 .. (@$status_order - 1)) {
$selected = $_ && last $selected = $_ && last
if $status_order->[$_] eq $DefaultTicketsTab; if $status_order->[$_] eq $DefaultTicketsTab;
} }
}
my $TicketTemplate = "ShowRequestorTickets$DefaultTicketsTab"; $TicketTemplate = "ShowRequestorTickets$DefaultTicketsTab";
$TicketTemplate = "ShowRequestorTicketsActive" $TicketTemplate = "ShowRequestorTicketsActive"
unless RT::Interface::Web->ComponentPathIsSafe($TicketTemplate) unless RT::Interface::Web->ComponentPathIsSafe($TicketTemplate)
and $m->comp_exists($TicketTemplate); and $m->comp_exists($TicketTemplate);
}
</%INIT> </%INIT>
<%ARGS> <%ARGS>
$Ticket=>undef $Ticket=>undef
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment