diff options
author | ivan <ivan> | 2010-11-10 23:12:42 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-11-10 23:12:42 +0000 |
commit | 9e8c4a41aa10f40c7c8fc744e37ea8b21d4dce1e (patch) | |
tree | 25162bc05390d3c30a89a36f7d3c563f1c988abc /rt/share/html | |
parent | f6450113d5a5d77a5f565630cdc48da0fc34b3e1 (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 " . |