[freeside-commits] freeside/httemplate/edit/process/elements process.html, 1.19, 1.20
Ivan,,,
ivan at wavetail.420.am
Sun Jun 6 19:39:37 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process/elements
In directory wavetail.420.am:/tmp/cvs-serv2861/httemplate/edit/process/elements
Modified Files:
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.19
retrieving revision 1.20
diff -u -w -d -r1.19 -r1.20
--- process.html 31 Dec 2009 02:20:33 -0000 1.19
+++ process.html 7 Jun 2010 02:39:22 -0000 1.20
@@ -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