[Rt-commit] rt branch, 4.0/redirect-after-quick-create, created. rt-4.0.0-408-gec6c478

Thomas Sibley trs at bestpractical.com
Fri May 20 12:57:45 EDT 2011


The branch, 4.0/redirect-after-quick-create has been created
        at  ec6c47884edb24b9a0e26f0368cf34bc47cd1dc8 (commit)

- Log -----------------------------------------------------------------
commit ec6c47884edb24b9a0e26f0368cf34bc47cd1dc8
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Fri May 20 12:57:02 2011 -0400

    Redirect back to ourselves after quick ticket creation to avoid POST duplicates
    
    This fixes #13669.

diff --git a/share/html/index.html b/share/html/index.html
index cac1d3c..7f52c8b 100755
--- a/share/html/index.html
+++ b/share/html/index.html
@@ -127,6 +127,10 @@ if ( $ARGS{'QuickCreate'} ) {
         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.';
     }
+    MaybeRedirectForResults(
+        Actions   => \@results,
+        Path      => '/index.html',
+    );
 }
 
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list