From 310427abc396e793a887b467c51964efb22424a1 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 8 Sep 2016 14:54:48 -0700 Subject: [PATCH] one more backport fix, #72101 --- httemplate/edit/process/elements/process.html | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.11.0