[Rt-commit] r8684 - rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Ticket
ruz at bestpractical.com
ruz at bestpractical.com
Tue Aug 21 19:07:38 EDT 2007
Author: ruz
Date: Tue Aug 21 19:07:38 2007
New Revision: 8684
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Ticket/Forward.html
Log:
* add ForwardAndReturn submit button
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Ticket/Forward.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Ticket/Forward.html (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Ticket/Forward.html Tue Aug 21 19:07:38 2007
@@ -75,6 +75,7 @@
</table>
+<& /Elements/Submit, Label => loc('Forward Message and Return'), Name => 'ForwardAndReturn' &>
<& /Elements/Submit, Label => loc('Forward Message'), Name => 'Forward' &>
</form>
<%INIT>
@@ -90,10 +91,19 @@
unless $txn->id;
my @results;
-if ( $ARGS{'Forward'} ) {
+if ( $Forward || $ForwardAndReturn ) {
require RT::Interface::Email;
my ($status, $msg) = RT::Interface::Email::ForwardTransaction( $txn, %ARGS );
push @results, $msg;
+
+ if ( $ForwardAndReturn ) {
+ $session{'i'}++;
+ $session{"Actions"} ||= [];
+ push @{ $session{"Actions"} }, @results;
+ RT::Interface::Web::Redirect(
+ RT->Config->Get('WebURL') ."/Ticket/Display.html?id=". $id
+ );
+ }
}
my $Title = loc('Forward message');
@@ -103,4 +113,6 @@
<%ARGS>
$id => undef
$QuoteTransaction => undef
+$ForwardAndReturn => 0,
+$Forward => $ForwardAndReturn,
</%ARGS>
More information about the Rt-commit
mailing list