[Rt-commit] rtir branch, 4.0/create-callback-pass-incident, created. 4.0.0-14-gfe61fae

Jim Brandt jbrandt at bestpractical.com
Thu Dec 15 16:52:26 EST 2016


The branch, 4.0/create-callback-pass-incident has been created
        at  fe61fae41d226ef941b2ed2234318e55c8540b64 (commit)

- Log -----------------------------------------------------------------
commit fe61fae41d226ef941b2ed2234318e55c8540b64
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Dec 15 16:50:52 2016 -0500

    Pass the newly created incident object in the BeforeDisplay callback

diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index 87dbda5..4382a74 100644
--- a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -391,7 +391,7 @@ if ( !$checks_failure && $CreateIncident ) {
     push @results, @tmp;
 
     if( $inc_obj ) {
-        $m->callback(CallbackName => 'BeforeDisplay', ARGSRef => \%ARGS, Child => $ChildObj);
+        $m->callback(CallbackName => 'BeforeDisplay', ARGSRef => \%ARGS, Child => $ChildObj, TicketObj => $inc_obj);
 
         MaybeRedirectForResults(
             Actions   => \@results,

-----------------------------------------------------------------------


More information about the rt-commit mailing list