[rt-users] Re: this has got to be simple, but.......

Raymond Norton admin at lctn.org
Tue Aug 3 15:41:44 EDT 2004



> are you seeing a text representation of html (as if your server used
> the wrong content type) or are you seeing unexecuted mason code?
>
> seph

This is some of what is displayed in the browser:

<%init> if ( $ARGS{'q'} ) { my $query = $ARGS{'q'}; if ( $query =~
m/^\s*(\d+)\s*$/ ) {
$m->redirect("$RT::WebPath/Ticket/Display.html?id=$1"); }
$session{'tickets'} = RT::Tickets->new( $session{'CurrentUser'} ); if (
$query =~ m/\@/ ) { $session{'tickets'}->LimitRequestor( VALUE => $query,
OPERATOR => '=', ); $m->redirect("$RT::WebPath/Search/Listing.html"); } # #
Any search on queue name or subject will be for new/open tickets # only. #
$session{'tickets'}->LimitStatus( VALUE => $_, OPERATOR => '=', ) for
qw(open new); my $queue = RT::Queue->new( $session{'CurrentUser'} ); if (
$queue->Load($query) && $queue->Id ) { $session{'tickets'}->LimitQueue(
VALUE => $queue->Id, OPERATOR => '=', );
$m->redirect("$RT::WebPath/Search/Listing.html"); }
$session{'tickets'}->LimitSubject( VALUE => $query, OPERATOR => 'LIKE' );
$m->redirect("$RT::WebPath/Search/Listing.html"); } if
($ARGS{'HomeRefreshInterval'}) { $session{'home_refresh_interval'} =
$ARGS{'HomeRefreshInterval'}; }




More information about the rt-users mailing list