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

BPS Git Server git at git.bestpractical.com
Tue Jan 30 21:23:48 UTC 2024


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-extensions2 has been created
        at  6ab02dd57cf48738645ddbd494eac2c2f2492355 (commit)

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

    Add AfterTransactions callback for ShowHistory

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 ab1cf3737e..e965116628 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 25bac1ecee7b9277123c8912d40e301fbbc8f690
Author: Brad Embree <brad at bestpractical.com>
Date:   Wed Dec 13 07:33:53 2023 -0800

    Add BeforeResults callback for /Search/Bulk.html

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 497efc020db5d3de4b05623a3392a5c29a3e1535
Author: Brad Embree <brad at bestpractical.com>
Date:   Wed Dec 13 07:29:58 2023 -0800

    Add Initial 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..ab1cf3737e 100644
--- a/share/html/Elements/ShowHistoryPage
+++ b/share/html/Elements/ShowHistoryPage
@@ -56,6 +56,8 @@ $ShowHeaders       => 0
 $PathPrefix        => ''
 </%ARGS>
 <%INIT>
+$m->callback( CallbackName => 'Initial', ARGSRef => \%ARGS, Object => $Object, Transactions => $Transactions, Attachments => $Attachments, AttachmentContent => $AttachmentContent );
+
 my $trans_content = {};
 my $trans_attachments = {};
 

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


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list