Index: share/html/index.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/share/html/index.html,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 index.html
--- share/html/index.html 31 Dec 2009 13:14:14 -0000 1.1.1.1
+++ share/html/index.html 10 Nov 2010 23:00:16 -0000
@@ -115,7 +115,11 @@
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 " .
Index: lib/RT/Config.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT/Config.pm,v
retrieving revision 1.5
diff -u -r1.5 Config.pm
--- lib/RT/Config.pm 6 Jun 2010 04:22:40 -0000 1.5
+++ lib/RT/Config.pm 10 Nov 2010 23:00:16 -0000
@@ -313,6 +313,16 @@
Hints => 'Use css rules to display text monospaced and with formatting preserved, but wrap as needed. This does not work well with IE6 and you should use the previous option', #loc
},
},
+ QuickCreateDisplay => {
+ Section => 'Ticket display',
+ Overridable => 1,
+ SortOrder => 6,
+ Widget => '/Widgets/Form/Boolean',
+ WidgetArguments => {
+ Description => 'On Quick Create, redirect to ticket display', #loc
+ #Hints => '', #loc
+ },
+ },
# User overridable locale options
DateTimeFormat => {