[Rt-commit] rt branch, admin_ui, updated. b2cda23f5518b3584b78346d3a1cfda2fd847684
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Jan 21 07:51:06 EST 2010
The branch, admin_ui has been updated
via b2cda23f5518b3584b78346d3a1cfda2fd847684 (commit)
from d8a7e4b76a86f7495fe0cf1c66b32045adfef70c (commit)
Summary of changes:
lib/RT/Dispatcher.pm | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit b2cda23f5518b3584b78346d3a1cfda2fd847684
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Jan 21 20:50:58 2010 +0800
extract name arg from actions
diff --git a/lib/RT/Dispatcher.pm b/lib/RT/Dispatcher.pm
index f35e0d3..a4c93cb 100644
--- a/lib/RT/Dispatcher.pm
+++ b/lib/RT/Dispatcher.pm
@@ -423,6 +423,20 @@ before '/SelfService' => run {
#main_nav->child( B => html => $m->scomp('GotoTicket'))
};
+before 'prefs/search' => run {
+ my $name;
+
+ my @monikers = 'prefs_edit_search_options';
+ for my $action ( Jifty->web->request->actions ) {
+ if ( grep { $action->moniker eq $_ } @monikers ) {
+ if ( $action->argument('name') ) {
+ $name = $action->argument('name');
+ }
+ }
+ }
+ Jifty->web->request->argument( name => $name ) if $name;
+};
+
before 'admin/' => run {
my ( $id, $lookup_type, $queue, $custom_field );
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list