[Rt-commit] rtir branch, 4.0/beforedisplay-callback, created. 4.0.0-14-ga75ff9a

Shawn Moore shawn at bestpractical.com
Thu Dec 8 15:46:00 EST 2016


The branch, 4.0/beforedisplay-callback has been created
        at  a75ff9a3dd6de6527e8b1d2a09abf710e8029ea7 (commit)

- Log -----------------------------------------------------------------
commit a75ff9a3dd6de6527e8b1d2a09abf710e8029ea7
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Thu Dec 8 20:43:45 2016 +0000

    Add BeforeDisplay callback to /RTIR/Display.html
    
    This is meant to mirror RT's /Ticket/Display.html BeforeDisplay callback.
    
    Fixes: T#176892

diff --git a/html/RTIR/Display.html b/html/RTIR/Display.html
index f1039a6..952ace2 100644
--- a/html/RTIR/Display.html
+++ b/html/RTIR/Display.html
@@ -272,6 +272,13 @@ if ( $ARGS{'MarkAsSeen'} ) {
     push @results, loc('Marked all messages as seen');
 }
 
+$m->callback(
+    CallbackName => 'BeforeDisplay',
+    TicketObj => \$Ticket,
+    Actions => \@results,
+    ARGSRef => \%ARGS,
+);
+
 # update id argument in the case we took merged or created new
 $ARGS{'id'} = $id = $Ticket->Id;
 

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


More information about the rt-commit mailing list