[Rt-commit] rt branch, admin_ui, updated. 5dd5986630fdd7f2567ca058a3e5061f66f8b004
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Fri Jan 1 08:06:19 EST 2010
The branch, admin_ui has been updated
via 5dd5986630fdd7f2567ca058a3e5061f66f8b004 (commit)
from dbba79c8bbd6ad4340a41cb47f8fc83a5b674928 (commit)
Summary of changes:
lib/RT/Dispatcher.pm | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 5dd5986630fdd7f2567ca058a3e5061f66f8b004
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Jan 1 21:06:12 2010 +0800
support update monikers to find id from request action
diff --git a/lib/RT/Dispatcher.pm b/lib/RT/Dispatcher.pm
index 0951ef7..04e3908 100644
--- a/lib/RT/Dispatcher.pm
+++ b/lib/RT/Dispatcher.pm
@@ -486,7 +486,7 @@ before 'admin/' => run {
my ( $id, $lookup_type );
my @monikers = qw/
- global_select_cfs
+ global_select_cfs
user_edit_memberships user_select_cfs user_config_my_rt user_select_private_key
group_edit_user_rights group_edit_group_rights group_select_cfs group_edit_members
@@ -494,6 +494,8 @@ before 'admin/' => run {
queue_edit_user_rights queue_edit_group_rights queue_select_cfs queue_edit_watchers
cf_select_ocfs cf_edit_user_rights cf_edit_group_rights
+
+ update_queue update_group update_user update_custom_field update_template
/;
for my $action ( Jifty->web->request->actions ) {
@@ -501,6 +503,10 @@ before 'admin/' => run {
if ( $action->argument('record_id') ) {
$id = $action->argument('record_id');
}
+ elsif ( $action->argument('id') ) {
+ $id = $action->argument('id');
+ }
+
if ( $action->moniker =~ qr/select_cfs/ ) {
$lookup_type = $action->argument('lookup_type');
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list