[Rt-commit] rt branch, create-action, updated. 4c709888b24c529071d8012ef535ec624b2738bc
sartak at bestpractical.com
sartak at bestpractical.com
Tue Sep 22 14:11:31 EDT 2009
The branch, create-action has been updated
via 4c709888b24c529071d8012ef535ec624b2738bc (commit)
from 18966ded65481f514d94762795a2b75f7adab534 (commit)
Summary of changes:
lib/RT/Action/CreateTicket.pm | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 4c709888b24c529071d8012ef535ec624b2738bc
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Sep 22 14:11:16 2009 -0400
Actually create tickets
diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index 82f0703..c5fc1e4 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -156,5 +156,13 @@ sub set_final_priority {
$self->fill_parameter(final_priority => default_value => $queue->final_priority);
}
+sub take_action {
+ my $self = shift;
+
+ # We should inline this function to encourage other people to use this
+ # action
+ HTML::Mason::Commands::create_ticket(%{ $self->argument_values });
+}
+
1;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list