summaryrefslogtreecommitdiff
path: root/rt/html/index.html
diff options
context:
space:
mode:
authorivan <ivan>2004-11-11 12:13:50 +0000
committerivan <ivan>2004-11-11 12:13:50 +0000
commitb8cfd0780aa40bb07f3215bf9cb58011f5e32a35 (patch)
tree5b5deb6f64cf6eb9f4630675725b59e7bfad137a /rt/html/index.html
parent0a2e57727e8f00fdc8ec4596619fb206c95fa919 (diff)
parentc582e92888b4a5553e1b4e5214cf35217e4a0cf0 (diff)
This commit was generated by cvs2svn to compensate for changes in r3874,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'rt/html/index.html')
-rw-r--r--rt/html/index.html21
1 files changed, 16 insertions, 5 deletions
diff --git a/rt/html/index.html b/rt/html/index.html
index 798972d94..928efb8f9 100644
--- a/rt/html/index.html
+++ b/rt/html/index.html
@@ -47,7 +47,8 @@ if ( $ARGS{'q'} ) {
my $query = $ARGS{'q'};
if ( $query =~ m/^\s*(\d+)\s*$/ ) {
- $m->redirect("$RT::WebPath/Ticket/Display.html?id=$1");
+ $m->comp("/Ticket/Display.html" , id=> $1);
+ return();
}
$session{'tickets'} = RT::Tickets->new( $session{'CurrentUser'} );
@@ -56,26 +57,36 @@ if ( $ARGS{'q'} ) {
$session{'tickets'}->LimitWatcher( VALUE => $query,
TYPE => 'Requestor',
OPERATOR => '=', );
- $m->redirect("$RT::WebPath/Search/Listing.html");
+ $m->comp("/Search/Listing.html");
+
+ return();
}
#
# 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");
+
+
+ $m->comp("/Search/Listing.html");
+ return();
}
- $session{'tickets'}->LimitSubject( VALUE => $query,
+ $session{'tickets'}->LimitSubject( VALUE => $query,
OPERATOR => 'LIKE' );
+ $m->comp("/Search/Listing.html");
+
+ return();
- $m->redirect("$RT::WebPath/Search/Listing.html");
}
if ($ARGS{'HomeRefreshInterval'}) {