Mailing List Archive

rt branch 5.0/add-callbacks-for-misc-extensions2 created. rt-5.0.5-85-gdaf5b0399e
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 daf5b0399eb115102100175b9582e72b7a823e19 (commit)

- Log -----------------------------------------------------------------
commit daf5b0399eb115102100175b9582e72b7a823e19
Author: Brad Embree <brad@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 54297af84fc122832740a551edbc61a507b541ee
Author: Brad Embree <brad@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..ce1e05ae01 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@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
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
https://lists.bestpractical.com/mailman/listinfo/rt-commit