[Bps-public-commit] RT-Extension-ListAllEmailRecipients branch, 4.2-backport, created. 2386d72462f4dbe4c011d320be246aa35804533d

Shawn Moore shawn at bestpractical.com
Fri Mar 10 14:34:45 EST 2017


The branch, 4.2-backport has been created
        at  2386d72462f4dbe4c011d320be246aa35804533d (commit)

- Log -----------------------------------------------------------------
commit 09b0d2846a0a2fd5d2bbbd890124e572a97c4def
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Fri Mar 10 19:32:48 2017 +0000

    Preparations for 4.2 backport

diff --git a/META.yml b/META.yml
index 04a3dbb..4c9cd05 100644
--- a/META.yml
+++ b/META.yml
@@ -25,4 +25,5 @@ resources:
   license: http://opensource.org/licenses/gpl-license.php
 version: '0.03'
 x_module_install_rtx_version: '0.38'
-x_requires_rt: 4.4.0
+x_requires_rt: 4.2.0
+x_rt_too_new: 4.4.0
diff --git a/Makefile.PL b/Makefile.PL
index 6f3e110..c0e3784 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -3,7 +3,8 @@ use inc::Module::Install;
 RTx     'RT-Extension-ListAllEmailRecipients';
 license 'gplv2';
 
-requires_rt '4.4.0';
+requires_rt '4.2.0';
+rt_too_new '4.4.0';
 
 my ($lp) = ($INC{'RT.pm'} =~ /^(.*)[\\\/]/);
 my $lib_path = join( ' ', "$RT::LocalPath/lib", $lp );
diff --git a/README b/README
index 859e64b..1bddaa7 100644
--- a/README
+++ b/README
@@ -9,7 +9,7 @@ DESCRIPTION
     are subsequently run to send email.
 
 RT VERSION
-    Works with RT 4.4
+    Works with RT 4.2
 
 INSTALLATION
     perl Makefile.PL
diff --git a/lib/RT/Extension/ListAllEmailRecipients.pm b/lib/RT/Extension/ListAllEmailRecipients.pm
index 10246f3..01a239f 100644
--- a/lib/RT/Extension/ListAllEmailRecipients.pm
+++ b/lib/RT/Extension/ListAllEmailRecipients.pm
@@ -18,7 +18,7 @@ scrips are subsequently run to send email.
 
 =head1 RT VERSION
 
-Works with RT 4.4
+Works with RT 4.2
 
 =head1 INSTALLATION
 

commit 3f7b7b00fb33aa6b8b196e2ddeab8f8b8b66c4b5
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Fri Mar 10 19:33:10 2017 +0000

    Notification recipients for web ticket create

diff --git a/html/Callbacks/RT-Extension-ListAllEmailRecipients/Ticket/Display.html/Initial b/html/Callbacks/RT-Extension-ListAllEmailRecipients/Ticket/Display.html/Initial
index b1d3f38..8f15f85 100644
--- a/html/Callbacks/RT-Extension-ListAllEmailRecipients/Ticket/Display.html/Initial
+++ b/html/Callbacks/RT-Extension-ListAllEmailRecipients/Ticket/Display.html/Initial
@@ -10,7 +10,9 @@ return unless $Queue->CurrentUserHasRight('CreateTicket');
 $ARGSRef->{'TicketObj'} ||= RT::Ticket->new($session{'CurrentUser'});
 
 RT::Extension::ListAllEmailRecipients::FindNotificationRecipients(
-    %{$ARGSRef},);
+    %{$ARGSRef},
+    CurrentUser => $session{'CurrentUser'},
+);
 
 </%init>
 <%args>
diff --git a/lib/RT/Extension/ListAllEmailRecipients.pm b/lib/RT/Extension/ListAllEmailRecipients.pm
index 01a239f..8762f2d 100644
--- a/lib/RT/Extension/ListAllEmailRecipients.pm
+++ b/lib/RT/Extension/ListAllEmailRecipients.pm
@@ -168,13 +168,7 @@ sub ProcessScripDryRun {
         # load separate ticket obj for dry-run
         my $TicketObj = RT::Ticket->new($args{CurrentUser});
 
-        @dryrun = $TicketObj->DryRun(
-            sub {
-                local $args{UpdateContent} ||= "Content";
-                HTML::Mason::Commands::CreateTicket( %args );
-            }
-        );
-
+        @dryrun = $TicketObj->DryRunCreate(%args);
     }
     else{
         # load separate ticket obj for dry-run

commit 2386d72462f4dbe4c011d320be246aa35804533d
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Fri Mar 10 19:33:48 2017 +0000

    Notification recipients for web ticket reply/comment

diff --git a/lib/RT/Extension/ListAllEmailRecipients.pm b/lib/RT/Extension/ListAllEmailRecipients.pm
index 8762f2d..26015ca 100644
--- a/lib/RT/Extension/ListAllEmailRecipients.pm
+++ b/lib/RT/Extension/ListAllEmailRecipients.pm
@@ -180,18 +180,7 @@ sub ProcessScripDryRun {
             return;
         }
 
-        @dryrun = $TicketObj->DryRun(
-            sub {
-                local $args{UpdateContent} ||= "Content";
-                HTML::Mason::Commands::ProcessUpdateMessage(ARGSRef  => \%args, TicketObj => $TicketObj, KeepAttachments => 1 );
-                HTML::Mason::Commands::ProcessTicketWatchers(ARGSRef => \%args, TicketObj => $TicketObj );
-                HTML::Mason::Commands::ProcessTicketBasics(  ARGSRef => \%args, TicketObj => $TicketObj );
-                HTML::Mason::Commands::ProcessTicketLinks(   ARGSRef => \%args, TicketObj => $TicketObj );
-                HTML::Mason::Commands::ProcessTicketDates(   ARGSRef => \%args, TicketObj => $TicketObj );
-                HTML::Mason::Commands::ProcessObjectCustomFieldUpdates(ARGSRef => \%args, TicketObj => $TicketObj );
-                HTML::Mason::Commands::ProcessTicketReminders( ARGSRef => \%args, TicketObj => $TicketObj );
-            }
-        );
+        @dryrun = $TicketObj->DryRun(%args);
     }
     return unless @dryrun;
 

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


More information about the Bps-public-commit mailing list