[Rt-commit] rt branch 5.0/add-callbacks-for-misc-extensions created. rt-5.0.5-85-g86a3fb7261

BPS Git Server git at git.bestpractical.com
Wed Dec 13 17:03:47 UTC 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/add-callbacks-for-misc-extensions has been created
        at  86a3fb72610c8b525950cfba81fc65abf2485459 (commit)

- Log -----------------------------------------------------------------
commit 86a3fb72610c8b525950cfba81fc65abf2485459
Author: Brad Embree <brad at bestpractical.com>
Date:   Wed Dec 13 07:39:25 2023 -0800

    Add AfterTransactions callback
    
    Added a callback required for use in a customer site extension.

diff --git a/share/html/Elements/ShowHistory b/share/html/Elements/ShowHistory
index 67886bfa05..22aa4d6089 100644
--- a/share/html/Elements/ShowHistory
+++ b/share/html/Elements/ShowHistory
@@ -51,6 +51,8 @@
 
 <& /Elements/ShowHistoryPage, %ARGS &>
 
+% $m->callback( CallbackName => 'AfterTransactions', %ARGS, Object => $Object );
+
 </div>
 % if ($ShowDisplayModes or $ShowTitle) {
 <& /Widgets/TitleBoxEnd &>
diff --git a/share/html/Elements/ShowHistoryPage b/share/html/Elements/ShowHistoryPage
index 381105a588..bb26305dfb 100644
--- a/share/html/Elements/ShowHistoryPage
+++ b/share/html/Elements/ShowHistoryPage
@@ -165,5 +165,7 @@ if ( $i == 1 and RT->Config->Get( "ShowHistory", $session{'CurrentUser'} ) eq 's
     $m->out( q{<div class="hidden end-of-history-list transaction" data-transaction-id="} . $txn->id . qq{"></div>\n} );
 }
 
+$m->callback( CallbackName => 'AfterTransactions', %ARGS, Object => $Object );
+
 </%perl>
 

commit bf9015cb42cd8c4663c5194754f793f1d8b8a5da
Author: Brad Embree <brad at bestpractical.com>
Date:   Wed Dec 13 07:33:53 2023 -0800

    Add BeforeResults callback
    
    Added a callback required for use in a customer site extension.

diff --git a/share/html/Search/Bulk.html b/share/html/Search/Bulk.html
index 86844459dc..b75dc9a395 100644
--- a/share/html/Search/Bulk.html
+++ b/share/html/Search/Bulk.html
@@ -48,6 +48,8 @@
 <& /Elements/Header, Title => $title &>
 <& /Elements/Tabs &>
 
+% $m->callback( CallbackName => 'BeforeResults', ARGSRef => \%ARGS, Query => $Query, Format => \$Format, DisplayFormat => $DisplayFormat );
+
 <& /Elements/ListActions, actions => \@results &>
 <form method="post" action="<% RT->Config->Get('WebPath') %>/Search/Bulk.html" enctype="multipart/form-data" name="BulkUpdate" id="BulkUpdate">
 % foreach my $var (qw(Query Format OrderBy Order Rows Page SavedSearchId SavedChartSearchId Token)) {

commit b1246bd63d7f05bd80063ec54199ed3c8918f330
Author: Brad Embree <brad at bestpractical.com>
Date:   Wed Dec 13 07:29:58 2023 -0800

    Add ModifyPaths callback for PreviewInSearch
    
    The PreviewInSearch extension needed a callback to modify various paths
    to ticket pages so they worked correctly from the preview on the search
    results page.

diff --git a/share/html/Elements/ShowHistoryPage b/share/html/Elements/ShowHistoryPage
index f6aa296e87..381105a588 100644
--- a/share/html/Elements/ShowHistoryPage
+++ b/share/html/Elements/ShowHistoryPage
@@ -136,6 +136,8 @@ while ( my $Transaction = $Transactions->Next ) {
     );
     next if $skip;
 
+    $m->callback( CallbackName => 'ModifyPaths', ARGSRef => \%ARGS, Transaction => $Transaction, Object => $Object );
+
     # ARGS is first because we're clobbering the "Attachments" parameter
     $m->comp( 'ShowTransaction',
         %ARGS,

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


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list