[freeside-commits] freeside/httemplate/edit/process/elements process.html, 1.17.4.1, 1.17.4.2

Ivan,,, ivan at wavetail.420.am
Sun Jun 6 19:40:17 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process/elements
In directory wavetail.420.am:/tmp/cvs-serv2863/httemplate/edit/process/elements

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	process.html 
Log Message:
domain rules based on templates (rules from other domains), RT#7514

Index: process.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/elements/process.html,v
retrieving revision 1.17.4.1
retrieving revision 1.17.4.2
diff -u -w -d -r1.17.4.1 -r1.17.4.2
--- process.html	27 Apr 2010 08:52:41 -0000	1.17.4.1
+++ process.html	7 Jun 2010 02:40:08 -0000	1.17.4.2
@@ -65,6 +65,9 @@
    #return an error string or empty for no error
    'precheck_callback' => sub { my( $cgi ) = @_; },
 
+   #after everything's inserted
+   'noerror_callback' => sub { my( $cgi, $object ) = @_; },
+
    #supplies arguments to insert() and replace()
    # for use with tables that are FS::option_Common (among other things)
    'args_callback' => sub { my( $cgi, $object ) = @_; },
@@ -298,12 +301,20 @@
 
 
 if ( $error ) {
+
   $cgi->param('error', $error);
   if ( $opt{'clear_on_error'} && scalar(@{$opt{'clear_on_error'}}) ) {
     foreach my $field (@{$opt{'clear_on_error'}}) {
       $cgi->param($field, '')
     }
   }
+
+} else {
+
+  if ( $opt{'noerror_callback'} ) {
+    &{ $opt{'noerror_callback'} }( $cgi, $new );
+  }
+
 }
 
 </%init>



More information about the freeside-commits mailing list