[freeside-commits] freeside/rt/share/html index.html, 1.1.1.1, 1.1.1.1.4.1

Ivan,,, ivan at wavetail.420.am
Wed Nov 10 15:12:25 PST 2010


Update of /home/cvs/cvsroot/freeside/rt/share/html
In directory wavetail.420.am:/tmp/cvs-serv6284/rt/share/html

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	index.html 
Log Message:
QuickCreateDisplay RT pref and config option to redirect to ticket display on quick create, RT#10429

Index: index.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/share/html/index.html,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.4.1
diff -u -w -d -r1.1.1.1 -r1.1.1.1.4.1
--- index.html	31 Dec 2009 13:14:14 -0000	1.1.1.1
+++ index.html	10 Nov 2010 23:12:23 -0000	1.1.1.1.4.1
@@ -115,8 +115,12 @@
                         From => $session{'CurrentUser'}->EmailAddress,
                         Content => $ARGS{'Content'},
                         Subject => $ARGS{'Subject'});
+        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 " .
             $QueueObj->Name . ' because some custom fields need to be set, please go to normal ticket creation page to do that.';



More information about the freeside-commits mailing list