X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FElements%2FShowRequestor;h=4fea9b9ab964728ccda54bd4ec2ddfa121cfcb63;hp=cfa079f3199175e1cf1e211d9a357742adb4e8e5;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hpb=73a6a80a9ca5edbd43d139b7cb25bfee4abfd35e diff --git a/rt/share/html/Ticket/Elements/ShowRequestor b/rt/share/html/Ticket/Elements/ShowRequestor index cfa079f31..4fea9b9ab 100755 --- a/rt/share/html/Ticket/Elements/ShowRequestor +++ b/rt/share/html/Ticket/Elements/ShowRequestor @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -45,33 +45,28 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} +% if ($ShowTickets) { +% } <&| /Widgets/TitleBox, title_raw => loc("More about the requestors"), class => 'ticket-info-requestor' &> -
+
% while ( my $requestor = $people->Next ) { -

<& /Elements/ShowUser, User => $requestor &>

+

<& /Elements/ShowUser, User => $requestor, Link => 0 &> + User Summary

%# Additional information about this user. Empty by default. @@ -85,6 +80,8 @@
% } +% $m->callback( requestor => $requestor, %ARGS, CallbackName => 'AfterComments' ); + % if ( $ShowTickets ) {
    @@ -108,7 +105,7 @@
    <& $TicketTemplate, Requestor => $requestor &> % } else { -
    + @@ -131,15 +128,13 @@
    % } -% if ( $has_right_adminusers ) { - <&|/l&>Modify this user -% } - %# end of individual requestor details
    % } %# end of requestors loop +% $m->callback( %ARGS, CallbackName => 'AfterRequestors' ); +
    <%INIT> @@ -167,17 +162,22 @@ my $status_link_text = {Active => loc('Active Tickets'), my $status_order = [qw/Active Inactive All/]; $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)) { - $selected = $_ && last - if $status_order->[$_] eq $DefaultTicketsTab; + if ( $status_order->[$_] eq $DefaultTicketsTab ) { + $selected = $_; + last; + } } -} -my $TicketTemplate = "ShowRequestorTickets$DefaultTicketsTab"; -$TicketTemplate = "ShowRequestorTicketsActive" - unless RT::Interface::Web->ComponentPathIsSafe($TicketTemplate) - and $m->comp_exists($TicketTemplate); + $TicketTemplate = "ShowRequestorTickets$DefaultTicketsTab"; + $TicketTemplate = "ShowRequestorTicketsActive" + unless RT::Interface::Web->ComponentPathIsSafe($TicketTemplate) + and $m->comp_exists($TicketTemplate); +} <%ARGS> $Ticket=>undef