Mailing List Archive

rt branch 5.0/add-callbacks-for-misc-extensions created. rt-5.0.5-78-gf339d98753
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 f339d987537992ecde147c0adc31ac031264174c (commit)

- Log -----------------------------------------------------------------
commit f339d987537992ecde147c0adc31ac031264174c
Author: Brad Embree <brad@bestpractical.com>
Date: Tue Dec 12 09:11:58 2023 -0800

Add callbacks needed by misc extensions

diff --git a/share/html/Elements/ShowHistory b/share/html/Elements/ShowHistory
index 67886bfa05..8e9350085d 100644
--- a/share/html/Elements/ShowHistory
+++ b/share/html/Elements/ShowHistory
@@ -51,6 +51,8 @@

<& /Elements/ShowHistoryPage, %ARGS &>

+% $m->callback( %ARGS, Object => $Object, CallbackName => 'AfterTransactions' );
+
</div>
% if ($ShowDisplayModes or $ShowTitle) {
<& /Widgets/TitleBoxEnd &>
diff --git a/share/html/Elements/ShowHistoryPage b/share/html/Elements/ShowHistoryPage
index f6aa296e87..7486a0276b 100644
--- a/share/html/Elements/ShowHistoryPage
+++ b/share/html/Elements/ShowHistoryPage
@@ -136,6 +136,11 @@ while ( my $Transaction = $Transactions->Next ) {
);
next if $skip;

+ $m->callback(
+ ARGSRef => \%ARGS,
+ CallbackName => 'ModifyPaths',
+ );
+
# ARGS is first because we're clobbering the "Attachments" parameter
$m->comp( 'ShowTransaction',
%ARGS,
@@ -163,5 +168,10 @@ 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(
+ %ARGS,
+ CallbackName => 'AfterTransactions',
+);
+
</%perl>

diff --git a/share/html/Search/Bulk.html b/share/html/Search/Bulk.html
index 86844459dc..e7033c715a 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( ARGSRef => \%ARGS, Format => \$Format, CallbackName => 'BeforeResults' );
+
<& /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)) {

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


hooks/post-receive
--
rt
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
https://lists.bestpractical.com/mailman/listinfo/rt-commit