diff options
author | ivan <ivan> | 2010-11-10 23:12:41 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-11-10 23:12:41 +0000 |
commit | 315efbebcacc909a11eb0379bd2f67bd3145243c (patch) | |
tree | 241d17351659b22e1eb700be095bcbafd9d0bc22 /rt/share/html | |
parent | a09250fdfe56ce6c9cea038e4e16f3a749460aa4 (diff) |
QuickCreateDisplay RT pref and config option to redirect to ticket display on quick create, RT#10429
Diffstat (limited to 'rt/share/html')
-rwxr-xr-x | rt/share/html/index.html | 6 |
1 files changed, 5 insertions, 1 deletions
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 " . |