[Rt-commit] r19205 - in rt/3.8/trunk: share/html/SelfService

sartak at bestpractical.com sartak at bestpractical.com
Wed Apr 15 02:18:24 EDT 2009


Author: sartak
Date: Wed Apr 15 02:18:24 2009
New Revision: 19205

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/share/html/SelfService/Create.html

Log:
 r82179 at onn:  sartak | 2009-04-15 02:18:17 -0400
 Add a BeforeCreate callback to SelfService Create


Modified: rt/3.8/trunk/share/html/SelfService/Create.html
==============================================================================
--- rt/3.8/trunk/share/html/SelfService/Create.html	(original)
+++ rt/3.8/trunk/share/html/SelfService/Create.html	Wed Apr 15 02:18:24 2009
@@ -128,8 +128,11 @@
     ARGSRef => \%ARGS
 );
 
+my $skip_create = 0;
+$m->callback( CallbackName => 'BeforeCreate', ARGSRef => \%ARGS, skip_create => \$skip_create, results => \@results );
+
 if ( defined($ARGS{'id'}) and $ARGS{'id'} eq 'new' ) { # new ticket?
-    if ( $ValidCFs ) {
+    if ( $ValidCFs && !$skip_create ) {
         $m->comp('Display.html', %ARGS);
         $RT::Logger->crit("After display call; error is $@");
         $m->abort();


More information about the Rt-commit mailing list