From: Mark Wells Date: Thu, 8 Sep 2016 21:54:48 +0000 (-0700) Subject: one more backport fix, #72101 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=310427abc396e793a887b467c51964efb22424a1 one more backport fix, #72101 --- diff --git a/httemplate/edit/process/elements/process.html b/httemplate/edit/process/elements/process.html index 89a38f4f6..60aaf749a 100644 --- a/httemplate/edit/process/elements/process.html +++ b/httemplate/edit/process/elements/process.html @@ -79,6 +79,9 @@ Example: #return an error string or empty for no error 'precheck_callback' => sub { my( $cgi ) = @_; }, + #after the new object is created + 'post_new_object_callback' => sub { my( $cgi, $object ) = @_; }, + #after everything's inserted 'noerror_callback' => sub { my( $cgi, $object ) = @_; }, @@ -269,6 +272,10 @@ foreach my $value ( @values ) { } } + if ( $opt{'post_new_object_callback'} ) { + &{ $opt{'post_new_object_callback'} }( $cgi, $new ); + } + if ( $opt{'agent_virt'} ) { if ( ! $new->agentnum