[Rt-commit] rt branch, create-action, updated. f5e2faa4c9573483191f4f7d1d01fbd588c0a3e8
sartak at bestpractical.com
sartak at bestpractical.com
Wed Sep 2 10:41:59 EDT 2009
The branch, create-action has been updated
via f5e2faa4c9573483191f4f7d1d01fbd588c0a3e8 (commit)
from 3b68852bc6cb09e11dccffe255390c0985dce0b0 (commit)
Summary of changes:
lib/RT/Action/QueueBased.pm | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit f5e2faa4c9573483191f4f7d1d01fbd588c0a3e8
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Sep 2 10:41:24 2009 -0400
Pull the queue out of the action request, not the top-level "queue" parameter
diff --git a/lib/RT/Action/QueueBased.pm b/lib/RT/Action/QueueBased.pm
index 610eaf2..5ea4424 100644
--- a/lib/RT/Action/QueueBased.pm
+++ b/lib/RT/Action/QueueBased.pm
@@ -27,9 +27,10 @@ sub arguments {
# adjust valid values, etc.
# We do not want to call set_queue twice.
my $already_setting_queue = (caller(1))[3] eq __PACKAGE__.'::set_queue';
+ my $action = Jifty->web->request->action($self->moniker);
+ my $queue = $action ? $action->argument('queue') : 0;
- if (!$already_setting_queue && Jifty->web->request->argument('queue')) {
- my $queue = Jifty->web->request->argument('queue');
+ if (!$already_setting_queue && $queue) {
$queue = $queue->[0] if ref $queue eq 'ARRAY';
$self->set_queue($queue);
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list