[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-169-g13b6c93
? sunnavy
sunnavy at bestpractical.com
Fri Oct 8 03:35:38 EDT 2010
The branch, 3.8-trunk has been updated
via 13b6c93483d67f09c7c8990afeaa30d87f0baaf9 (commit)
from 3fcf977a7f1fa77f581eab7ee7d221d4152b6ff7 (commit)
Summary of changes:
etc/upgrade/3.8.9/content | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 13b6c93483d67f09c7c8990afeaa30d87f0baaf9
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Oct 8 15:27:27 2010 +0800
make Approver->Name change in upgrade
diff --git a/etc/upgrade/3.8.9/content b/etc/upgrade/3.8.9/content
index 5c42b78..8a28f7d 100644
--- a/etc/upgrade/3.8.9/content
+++ b/etc/upgrade/3.8.9/content
@@ -37,4 +37,27 @@
} while $found == 1000;
}
},
+ sub {
+ my $queue = RT::Queue->new( $RT::SystemUser );
+ $queue->Load('___Approvals');
+ return unless $queue->id;
+
+ for my $name (
+ 'All Approvals Passed', 'Approval Passed', 'Approval Rejected'
+ )
+ {
+ my $template = RT::Template->new($RT::SystemUser);
+ $template->LoadQueueTemplate( Name => $name, Queue => $queue->id );
+ next unless $template->id;
+ my $content = $template->Content;
+
+ # there is only one OwnerObj->Name normally, so no need /g
+ if ( $content =~
+s!(?<=Your ticket has been (?:approved|rejected) by { eval { )\$Approval->OwnerObj->Name!\$Approver->Name!
+ )
+ {
+ $template->SetContent($content);
+ }
+ }
+ },
);
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list