[Bps-public-commit] RT-Extension-PreviewInSearch branch prepare-version-0.06 created. 0.05-3-gef7e20b

BPS Git Server git at git.bestpractical.com
Tue Dec 12 16:15:33 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, prepare-version-0.06 has been created
        at  ef7e20b76bd96643fca2ea03486bf8e0439083c2 (commit)

- Log -----------------------------------------------------------------
commit ef7e20b76bd96643fca2ea03486bf8e0439083c2
Author: Brad Embree <brad at bestpractical.com>
Date:   Tue Dec 12 08:15:00 2023 -0800

    Prepare version 0.06

diff --git a/Changes b/Changes
index ea889ed..56641b7 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
 Revision history for RT-Extension-PreviewInSearch
 
+0.06 2023-12-12
+ - Correct the EmailRecordPath path in ModifyPaths callback
+ - Document required patch to add ModifyPaths callback
+
 0.05 2023-09-26
  - Update for RT 5.0
 
diff --git a/META.yml b/META.yml
index ff9f13f..0fa5383 100644
--- a/META.yml
+++ b/META.yml
@@ -24,6 +24,6 @@ requires:
 resources:
   license: http://opensource.org/licenses/gpl-license.php
   repository: https://github.com/bestpractical/rt-extension-previewinsearch.git
-version: '0.05'
+version: '0.06'
 x_module_install_rtx_version: '0.43'
 x_requires_rt: 4.0.0
diff --git a/README b/README
index 08f00e8..57f8b78 100644
--- a/README
+++ b/README
@@ -25,6 +25,11 @@ INSTALLATION
     make install
         May need root permissions
 
+    Patch RT
+        For RT prior to 5.0.6, apply the patches:
+
+            patch -d /opt/rt5 -p1 < patches/0001-MODIFYPATHS.patch
+
     Edit your /opt/rt4/etc/RT_SiteConfig.pm
         Add this line:
 
diff --git a/lib/RT/Extension/PreviewInSearch.pm b/lib/RT/Extension/PreviewInSearch.pm
index 942546f..4a1849b 100644
--- a/lib/RT/Extension/PreviewInSearch.pm
+++ b/lib/RT/Extension/PreviewInSearch.pm
@@ -4,7 +4,7 @@ use warnings;
 
 package RT::Extension::PreviewInSearch;
 
-our $VERSION = '0.05';
+our $VERSION = '0.06';
 
 =head1 NAME
 
diff --git a/patches/0001-Add-ModifyPaths-Callback.patch b/patches/0001-Add-ModifyPaths-Callback.patch
new file mode 100644
index 0000000..ec45cd6
--- /dev/null
+++ b/patches/0001-Add-ModifyPaths-Callback.patch
@@ -0,0 +1,16 @@
+diff --git a/share/html/Elements/ShowHistoryPage b/share/html/Elements/ShowHistoryPage
+index f6aa296e8..7486a0276 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,

commit cdb3b8bbb87a1366711cf29835a2293c48557686
Author: Brad Embree <brad at bestpractical.com>
Date:   Tue Dec 12 08:14:36 2023 -0800

    Document required patch in POD

diff --git a/lib/RT/Extension/PreviewInSearch.pm b/lib/RT/Extension/PreviewInSearch.pm
index 0ce4d75..942546f 100644
--- a/lib/RT/Extension/PreviewInSearch.pm
+++ b/lib/RT/Extension/PreviewInSearch.pm
@@ -43,6 +43,12 @@ Works with RT 4.2, 4.4, 5.0
 
 May need root permissions
 
+=item Patch RT
+
+For RT prior to 5.0.6, apply the patches:
+
+    patch -d /opt/rt5 -p1 < 0001-Add-ModifyPaths-Callback.patch
+
 =item Edit your F</opt/rt4/etc/RT_SiteConfig.pm>
 
 Add this line:

commit 90634b86f394edbea297735937b926746ce56131
Author: Brad Embree <brad at bestpractical.com>
Date:   Tue Dec 12 08:14:06 2023 -0800

    Fix EmailRecordPath in ModifyPaths callback

diff --git a/html/Callbacks/RT-Extension-PreviewInSearch/Elements/ShowHistoryPage/ModifyPaths b/html/Callbacks/RT-Extension-PreviewInSearch/Elements/ShowHistoryPage/ModifyPaths
index dd08313..af4e1dd 100644
--- a/html/Callbacks/RT-Extension-PreviewInSearch/Elements/ShowHistoryPage/ModifyPaths
+++ b/html/Callbacks/RT-Extension-PreviewInSearch/Elements/ShowHistoryPage/ModifyPaths
@@ -17,5 +17,8 @@ if ($ShowHistory eq "scroll") {
     if ( $ARGSRef->{UpdatePath} ne ( RT->Config->Get('WebPath') . '/Ticket/Update.html' ) ) {
         $ARGSRef->{UpdatePath} = RT->Config->Get('WebPath') . '/Ticket/Update.html';
     }
+    if ( $ARGSRef->{EmailRecordPath} ne ( RT->Config->Get('WebPath') . '/Ticket/ShowEmailRecord.html' ) ) {
+        $ARGSRef->{EmailRecordPath} = RT->Config->Get('WebPath') . '/Ticket/ShowEmailRecord.html';
+    }
 }
 </%INIT>

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


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


More information about the Bps-public-commit mailing list