[Rt-commit] rt branch, 4.2/forward-with-message, updated. rt-4.0.6-254-gb109f0b
? sunnavy
sunnavy at bestpractical.com
Thu Aug 15 08:33:08 EDT 2013
The branch, 4.2/forward-with-message has been updated
via b109f0bb9540bcfdffe54672c7f24e02b67eab11 (commit)
from fb3f005574382822cf57dbccc469562423d55688 (commit)
Summary of changes:
etc/upgrade/4.1.20/content | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 etc/upgrade/4.1.20/content
- Log -----------------------------------------------------------------
commit b109f0bb9540bcfdffe54672c7f24e02b67eab11
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Aug 15 20:11:47 2013 +0800
upgrade content for new customized forward messages
diff --git a/etc/upgrade/4.1.20/content b/etc/upgrade/4.1.20/content
new file mode 100644
index 0000000..de25d2c
--- /dev/null
+++ b/etc/upgrade/4.1.20/content
@@ -0,0 +1,36 @@
+ at ScripActions = (
+ { Name => 'Send Forward',
+ Description => 'Send forwarded message',
+ ExecModule => 'SendForward', },
+);
+
+ at Scrips = (
+ { Description => 'On Forward Transaction Send forwarded message',
+ ScripCondition => 'On Forward Transaction',
+ ScripAction => 'Send Forward',
+ Template => 'Forward' },
+ { Description => 'On Forward Ticket Send forwarded message',
+ ScripCondition => 'On Forward Ticket',
+ ScripAction => 'Send Forward',
+ Template => 'Forward Ticket' },
+);
+
+ at Initial = (
+ sub {
+ my $forward_template = RT::Template->new(RT->SystemUser);
+ $forward_template->Load('Forward');
+ $forward_template->SetDescription('Forwarded message');
+ $forward_template->SetContent(q{
+
+{ $ForwardTransaction->Content =~ /\S/ ? $ForwardTransaction->Content : "This is a forward of transaction #".$Transaction->id." of ticket #". $Ticket->id }
+});
+
+ my $forward_ticket_template = RT::Template->new(RT->SystemUser);
+ $forward_ticket_template->Load('Forward Ticket');
+ $forward_ticket_template->SetDescription('Forwarded ticket message');
+ $forward_ticket_template->SetContent(q{
+
+{ $ForwardTransaction->Content =~ /\S/ ? $ForwardTransaction->Content : "This is a forward of ticket #". $Ticket->id }
+});
+ },
+);
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list