[Bps-public-commit] rt-extension-onetimeto branch, master, updated. 1.03-6-ga3bb7cf
? sunnavy
sunnavy at bestpractical.com
Tue Dec 18 20:22:46 EST 2018
The branch, master has been updated
via a3bb7cfed807b8fde5ee97c72507961d8d2debbe (commit)
via ad9c77181210d54f50b7e979364bcc397de3f8bf (commit)
via c2ca834cf7d4a367609b9c5df627cec683085c09 (commit)
from fb3d46220f172a7f5df3c10533af7f9b8cef4499 (commit)
Summary of changes:
Changes | 3 ++
MANIFEST | 1 +
META.yml | 2 +-
README | 11 +++++-
lib/RT/Extension/OneTimeTo.pm | 14 ++++++-
patches/Support-UpdateTo-in-preview-scrips.patch | 48 ++++++++++++++++++++++++
6 files changed, 75 insertions(+), 4 deletions(-)
create mode 100644 patches/Support-UpdateTo-in-preview-scrips.patch
- Log -----------------------------------------------------------------
commit c2ca834cf7d4a367609b9c5df627cec683085c09
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Dec 19 05:50:47 2018 +0800
Tweak preview scrips in RT for UpdateTo input
diff --git a/MANIFEST b/MANIFEST
index 3a81df5..0354d1d 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -20,6 +20,7 @@ lib/RT/Extension/OneTimeTo.pm
Makefile.PL
MANIFEST This list of files
META.yml
+patches/Support-UpdateTo-in-preview-scrips.patch
README
xt/basic.t
xt/empty-update.t
diff --git a/README b/README
index 5592347..a385b32 100644
--- a/README
+++ b/README
@@ -8,6 +8,15 @@ INSTALLATION
make install
This step may need root permissions.
+ Patch RT(For RT 4.4)
+ For RT 4.4.2+:
+
+ patch -p1 -d /opt/rt4 < patches/Support-UpdateTo-in-preview-scrips.patch
+
+ For RT 4.4.0 and 4.4.1:
+
+ patch -p1 -d /opt/rt4 -F3 < patches/Support-UpdateTo-in-preview-scrips.patch
+
Edit your /opt/rt4/etc/RT_SiteConfig.pm
Add this line:
diff --git a/lib/RT/Extension/OneTimeTo.pm b/lib/RT/Extension/OneTimeTo.pm
index fc8d839..ce152af 100644
--- a/lib/RT/Extension/OneTimeTo.pm
+++ b/lib/RT/Extension/OneTimeTo.pm
@@ -114,6 +114,16 @@ RT::Extension::OneTimeTo - Adds a One-time To: box next to the One-time Cc/Bcc b
This step may need root permissions.
+=item Patch RT(For RT 4.4)
+
+For RT 4.4.2+:
+
+ patch -p1 -d /opt/rt4 < patches/Support-UpdateTo-in-preview-scrips.patch
+
+For RT 4.4.0 and 4.4.1:
+
+ patch -p1 -d /opt/rt4 -F3 < patches/Support-UpdateTo-in-preview-scrips.patch
+
=item Edit your F</opt/rt4/etc/RT_SiteConfig.pm>
Add this line:
diff --git a/patches/Support-UpdateTo-in-preview-scrips.patch b/patches/Support-UpdateTo-in-preview-scrips.patch
new file mode 100644
index 0000000..dc92173
--- /dev/null
+++ b/patches/Support-UpdateTo-in-preview-scrips.patch
@@ -0,0 +1,48 @@
+diff --git a/share/html/Helpers/PreviewScrips b/share/html/Helpers/PreviewScrips
+index 437bf68ddf..836ff4ff06 100644
+--- a/share/html/Helpers/PreviewScrips
++++ b/share/html/Helpers/PreviewScrips
+@@ -122,12 +122,7 @@ $submitted{$_} = 1 for split /,/, $ARGS{TxnRecipients};
+ <label for="TxnSendMailTo-<% $addr->address %>-<% $recips{$addr->address} %>"><& /Elements/ShowUser, Address => $addr &></label>
+ % $m->callback(CallbackName => 'AfterAddress', Ticket => $TicketObj, Address => $addr, Type => $type);
+ % unless ( $show_checkbox ) {
+-% if ( $type eq 'Cc' ) {
+- (<&|/l&>explicit one-time Cc</&>)
+-% }
+-% else {
+- (<&|/l&>explicit one-time Bcc</&>)
+-% }
++ (<&|/l, $type&>explicit one-time [_1]</&>)
+ % }
+ </li>
+ % }
+diff --git a/share/html/Helpers/ShowSimplifiedRecipients b/share/html/Helpers/ShowSimplifiedRecipients
+index 0bb088f416..c31c4884ad 100644
+--- a/share/html/Helpers/ShowSimplifiedRecipients
++++ b/share/html/Helpers/ShowSimplifiedRecipients
+@@ -124,11 +124,7 @@ $submitted{$_} = 1 for split /,/, $ARGS{TxnRecipients};
+ % }
+ % for my $addr (sort {$a->address cmp $b->address} values %{$no_squelch{$type}}) {
+ <label><& /Elements/ShowUser, Address => $addr &></label>
+-% if ( $type eq 'Cc' ) {
+-(<&|/l&>explicit one-time Cc</&>)
+-% } else {
+-(<&|/l&>explicit one-time Bcc</&>)
+-% }
++(<&|/l, $type&>explicit one-time [_1]</&>)
+ <br />
+ % }
+ </td></tr>
+diff --git a/share/html/Ticket/Update.html b/share/html/Ticket/Update.html
+index 6e73b50a81..e630cb40aa 100644
+--- a/share/html/Ticket/Update.html
++++ b/share/html/Ticket/Update.html
+@@ -256,7 +256,7 @@ jQuery( function() {
+ jQuery('#UpdateContent').on('blur', updateScrips );
+ }
+
+- jQuery("#ticket-update-metadata :input, #UpdateCc, #UpdateBcc").change( updateScrips );
++ jQuery("#ticket-update-metadata :input, #UpdateCc, #UpdateBcc, #UpdateTo").change( updateScrips );
+
+ });
+ </script>
commit ad9c77181210d54f50b7e979364bcc397de3f8bf
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Dec 19 09:21:12 2018 +0800
Copyright year update
diff --git a/README b/README
index a385b32..b42df8a 100644
--- a/README
+++ b/README
@@ -40,7 +40,7 @@ BUGS
L<rt.cpan.org|http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-OneTimeTo>.
LICENSE AND COPYRIGHT
- This software is Copyright (c) 2010-2015 by Best Practical Solutions
+ This software is Copyright (c) 2010-2018 by Best Practical Solutions
This is free software, licensed under:
diff --git a/lib/RT/Extension/OneTimeTo.pm b/lib/RT/Extension/OneTimeTo.pm
index ce152af..dc42623 100644
--- a/lib/RT/Extension/OneTimeTo.pm
+++ b/lib/RT/Extension/OneTimeTo.pm
@@ -154,7 +154,7 @@ or via the web at
=head1 LICENSE AND COPYRIGHT
-This software is Copyright (c) 2010-2015 by Best Practical Solutions
+This software is Copyright (c) 2010-2018 by Best Practical Solutions
This is free software, licensed under:
commit a3bb7cfed807b8fde5ee97c72507961d8d2debbe
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Dec 19 05:53:33 2018 +0800
Release 1.05
diff --git a/Changes b/Changes
index 2a37373..189ee68 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,6 @@
+1.05 2018-12-18
+ - Tweak preview scrips in RT 4.4 for UpdateTo input
+
1.04 2018-08-29
- Fix a double-encoding issue in RT::Ticket::_RecordNote
diff --git a/META.yml b/META.yml
index e5da620..b91328c 100644
--- a/META.yml
+++ b/META.yml
@@ -26,7 +26,7 @@ requires:
resources:
license: http://opensource.org/licenses/gpl-license.php
repository: https://github.com/bestpractical/rt-extension-onetimeto
-version: '1.04'
+version: '1.05'
x_module_install_rtx_version: '0.40'
x_requires_rt: 4.2.0
x_rt_too_new: 4.6.0
diff --git a/lib/RT/Extension/OneTimeTo.pm b/lib/RT/Extension/OneTimeTo.pm
index dc42623..875b5fe 100644
--- a/lib/RT/Extension/OneTimeTo.pm
+++ b/lib/RT/Extension/OneTimeTo.pm
@@ -3,7 +3,7 @@ use strict;
use warnings;
no warnings 'redefine';
-our $VERSION = '1.04';
+our $VERSION = '1.05';
{
# Includes RT-Send-To in the list of headers used to grab
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list