[Rt-commit] rt branch, 4.0/skip-approval-action-callback, created. rt-4.0.13-151-g001b1c9
Thomas Sibley
trs at bestpractical.com
Wed Jul 10 21:00:58 EDT 2013
The branch, 4.0/skip-approval-action-callback has been created
at 001b1c917dc7fc1e3b0539cf15b908c2642cdc11 (commit)
- Log -----------------------------------------------------------------
commit 001b1c917dc7fc1e3b0539cf15b908c2642cdc11
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Thu Mar 1 15:33:01 2012 -0800
Add a quick callback to allow you to stop an Approval
Useful to force people to provide a Note.
diff --git a/share/html/Approvals/index.html b/share/html/Approvals/index.html
index 09392c9..1963cb6 100644
--- a/share/html/Approvals/index.html
+++ b/share/html/Approvals/index.html
@@ -64,6 +64,13 @@ foreach my $arg ( keys %ARGS ) {
my $ticket = LoadTicket($1);
+ my $skip_update = 0;
+ $m->callback( CallbackName => 'BeforeApproval',
+ skip_update => \$skip_update,
+ Ticket => $ticket,
+ actions => \@actions);
+ next if $skip_update;
+
if ( $ARGS{ "Approval-" . $ticket->Id . "-Notes" } ) {
my $notes = MIME::Entity->build(
Data => [ $ARGS{ "Approval-" . $ticket->Id . "-Notes" } ]
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list