[Rt-commit] rt branch, create-action, updated. 9a6621c0439214f4e806afc49d07184cd8f843d6

sartak at bestpractical.com sartak at bestpractical.com
Mon Oct 5 20:31:55 EDT 2009


The branch, create-action has been updated
       via  9a6621c0439214f4e806afc49d07184cd8f843d6 (commit)
      from  649fd4d2d580f22423d84fb922cb4c050af30638 (commit)

Summary of changes:
 lib/RT/Action/CreateTicket.pm |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 9a6621c0439214f4e806afc49d07184cd8f843d6
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Oct 5 20:20:35 2009 -0400

    Call the superclass take_action to actually create the ticket, and
    report success

diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index 95d57a6..c88d9a8 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -200,6 +200,12 @@ sub take_action {
     # We should inline this function to encourage other people to use this
     # action
     HTML::Mason::Commands::create_ticket(%{ $self->argument_values });
+    $self->SUPER::take_action(@_);
+}
+
+sub report_success {
+    my $self = shift;
+    $self->result->message(_("Your ticket has been created!"));
 }
 
 sub add_ticket_custom_fields {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list