From 315efbebcacc909a11eb0379bd2f67bd3145243c Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 10 Nov 2010 23:12:41 +0000 Subject: QuickCreateDisplay RT pref and config option to redirect to ticket display on quick create, RT#10429 --- rt/share/html/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rt/share/html') diff --git a/rt/share/html/index.html b/rt/share/html/index.html index ad9964cdb..2d703584e 100755 --- a/rt/share/html/index.html +++ b/rt/share/html/index.html @@ -115,7 +115,11 @@ if ( $ARGS{'QuickCreate'} ) { From => $session{'CurrentUser'}->EmailAddress, Content => $ARGS{'Content'}, Subject => $ARGS{'Subject'}); - push @results, $msg; + if ( $t && $t->Id && RT->Config->Get('QuickCreateDisplay', $session{'CurrentUser'}) ) { + RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."Ticket/Display.html?id=". $t->Id); + } else { + push @results, $msg; + } } elsif ( !$ValidCFs ) { push @results, "can't quickly create ticket in queue " . -- cgit v1.2.1