[Bps-public-commit] RT-Extension-PreviewInSearch branch update-for-rt5 updated. 0.04-7-g72ade1b

BPS Git Server git at git.bestpractical.com
Tue May 9 19:09:30 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-Extension-PreviewInSearch".

The branch, update-for-rt5 has been updated
       via  72ade1bd713d81b2008e3719ad5f65fdbf99c614 (commit)
       via  438f449511e679ae64068372e359d50a031ec3ec (commit)
      from  41f48a7b60a42a4b2d4f7ddd1268be2a5b77fd7f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 72ade1bd713d81b2008e3719ad5f65fdbf99c614
Author: Brad Embree <brad at bestpractical.com>
Date:   Tue May 9 12:08:01 2023 -0700

    Update MANIFEST

diff --git a/MANIFEST b/MANIFEST
index aa978f3..937d5fb 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,7 +1,7 @@
 Changes
 doc/images/preview-screenshot.png
+html/Callbacks/RT-Extension-PreviewInSearch/Elements/ShowHistoryPage/ModifyPaths
 html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
-html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/BeforeResults
 html/Helpers/TicketPreview
 inc/Module/Install.pm
 inc/Module/Install/Base.pm

commit 438f449511e679ae64068372e359d50a031ec3ec
Author: Brad Embree <brad at bestpractical.com>
Date:   Tue May 9 12:06:51 2023 -0700

    Add callback to fix ticket action paths using scroll history

diff --git a/html/Callbacks/RT-Extension-PreviewInSearch/Elements/ShowHistoryPage/ModifyPaths b/html/Callbacks/RT-Extension-PreviewInSearch/Elements/ShowHistoryPage/ModifyPaths
new file mode 100644
index 0000000..2101a5a
--- /dev/null
+++ b/html/Callbacks/RT-Extension-PreviewInSearch/Elements/ShowHistoryPage/ModifyPaths
@@ -0,0 +1,18 @@
+<%ARGS>
+$ARGSRef
+</%ARGS>
+<%INIT>
+my $ShowHistory = RT->Config->Get("ShowHistory", $session{'CurrentUser'});
+if ($ShowHistory eq "scroll") {
+    # if scrolling history the paths will not be correct so fix them
+    if ( $ARGSRef->{AttachmentPath} ne ( RT->Config->Get('WebPath') . '/Ticket/Attachment' ) ) {
+        $ARGSRef->{AttachmentPath} = RT->Config->Get('WebPath') . '/Ticket/Attachment';
+    }
+    if ( $ARGSRef->{ForwardPath} ne ( RT->Config->Get('WebPath') . '/Ticket/Forward.html' ) ) {
+        $ARGSRef->{ForwardPath} = RT->Config->Get('WebPath') . '/Ticket/Forward.html';
+    }
+    if ( $ARGSRef->{UpdatePath} ne ( RT->Config->Get('WebPath') . '/Ticket/Update.html' ) ) {
+        $ARGSRef->{UpdatePath} = RT->Config->Get('WebPath') . '/Ticket/Update.html';
+    }
+}
+</%INIT>

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

Summary of changes:
 MANIFEST                                               |  2 +-
 .../Elements/ShowHistoryPage/ModifyPaths               | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)
 create mode 100644 html/Callbacks/RT-Extension-PreviewInSearch/Elements/ShowHistoryPage/ModifyPaths


hooks/post-receive
-- 
RT-Extension-PreviewInSearch


More information about the Bps-public-commit mailing list