[Rt-commit] rtir branch, 4.0/add-show-children-callback, created. 4.0.1-2-gc2f7748e

Jim Brandt jbrandt at bestpractical.com
Fri Mar 29 11:55:30 EDT 2019


The branch, 4.0/add-show-children-callback has been created
        at  c2f7748e0cde7e2b1397a88beed248a74540f1e3 (commit)

- Log -----------------------------------------------------------------
commit c2f7748e0cde7e2b1397a88beed248a74540f1e3
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Mar 29 10:58:59 2019 -0400

    Add callback to modify child portlet actions

diff --git a/html/RTIR/Incident/Elements/ShowChildren b/html/RTIR/Incident/Elements/ShowChildren
index 31584955..48518671 100644
--- a/html/RTIR/Incident/Elements/ShowChildren
+++ b/html/RTIR/Incident/Elements/ShowChildren
@@ -131,6 +131,9 @@ if ( $total_count > $Rows ) {
         path => RT::IR->HREFTo('Incident/Children/?Lifecycle='. $Lifecycle .'&id='. $id)
     };
 }
+
+$m->callback( CallbackName => 'ModifyBoxActions', %ARGS, IncidentObj => $IncidentObj, BoxActionsRef => \@box_actions, Lifecycle => $Lifecycle );
+
 my $box_actions = join ' 'x3,
     map q{<a href="} . $_->{'path'} . ( $_->{'class'} ? q{" class="} . $_->{'class'} : '' ) . q{">}
         . $m->interp->apply_escapes( $_->{title}, 'h' ) . q{</a>},

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


More information about the rt-commit mailing list