%# "He's the kind of man for the times that need the kind of man he is ..." <& /Work/Elements/104Header, Title => 'My Tickets', Action => '/Work/Tickets/index.html' &> <& /Work/Elements/SelectSearch, Categories => \%Categories, Category => $Category, ShowApproving => 1, DefaultStatus => $DefaultStatus, %ARGS &> <& /Work/Elements/List, List => $Tickets, Begin => $Begin, URL => '/Work/Tickets/Display.html', ARGS => \%ARGS, Role => 'owner' &> <& /Work/Elements/104Footer &> <%INIT> my $DefaultStatus = ($RT::OIN104 ? 'approving' : 'unresolved'); $Status ||= $DefaultStatus; $session{'WorkPage'} = '/Work/Tickets/'; $session{'CcSet'} = 0; $m->comp('/Work/Elements/GotoTicket', Type => 'Tickets', GotoTicket => $GotoTicket); my %Categories; my $Tickets = RT::Tickets->new($session{'CurrentUser'}); $m->comp( '/Work/Elements/DoSearch', %ARGS, Tickets => $Tickets, Categories => \%Categories, Owner => $session{'CurrentUser'}->Id, Requestor => $Requestor, Approving => ($Status eq 'approving'), ); <%ARGS> $Category => '' $Begin => 0 $Status => undef $CreatedBefore => '' $CreatedAfter => '' $Requestor => '' $GotoTicket => 0