
sartak at bestpractical
Nov 4, 2009, 1:48 PM
Post #1 of 1
(59 views)
Permalink
|
|
rt branch, create-action, updated. ed16e5298ea85386e1368c7261d747bce81c7eca
|
|
The branch, create-action has been updated via ed16e5298ea85386e1368c7261d747bce81c7eca (commit) from 48636fcad4d2973d3a5615147952cb1ed259b6e4 (commit) Summary of changes: lib/RT/Action/CreateTicket.pm | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) - Log ----------------------------------------------------------------- commit ed16e5298ea85386e1368c7261d747bce81c7eca Author: Shawn M Moore <sartak[at]bestpractical.com> Date: Wed Nov 4 16:48:17 2009 -0500 We need to explicitly dispatch to the right take_action diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm index fb2b67c..7b7023c 100644 --- a/lib/RT/Action/CreateTicket.pm +++ b/lib/RT/Action/CreateTicket.pm @@ -189,6 +189,15 @@ sub set_final_priority { $self->fill_parameter(final_priority => default_value => $queue->final_priority); } +sub take_action { + my $self = shift; + + # We can't rely on regular method dispatch because the QueueBased and + # CustomFieldBased superclasses also have take_action, inherited from + # Jifty::Action. + $self->Jifty::Action::Record::Create::take_action(@_); +} + sub report_success { my $self = shift; $self->result->message(_("Your ticket has been created!")); ----------------------------------------------------------------------- _______________________________________________ Rt-commit mailing list Rt-commit[at]lists.bestpractical.com http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit
|