[Rt-commit] rt branch, admin_ui, updated. 67be570fdafe7bf3ead60edc7599c555663e9bcd
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Mon Jan 4 01:21:05 EST 2010
The branch, admin_ui has been updated
via 67be570fdafe7bf3ead60edc7599c555663e9bcd (commit)
from 1bab24bf4d4246db81d4e74a502e792baf7a17e1 (commit)
Summary of changes:
lib/RT/Dispatcher.pm | 9 ++++++++-
lib/RT/View/Admin/CustomFields.pm | 3 +++
2 files changed, 11 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 67be570fdafe7bf3ead60edc7599c555663e9bcd
Author: sunnavy <sunnavy at bestpractical.com>
Date: Mon Jan 4 14:20:49 2010 +0800
add /admin/custom_fields/values view
diff --git a/lib/RT/Dispatcher.pm b/lib/RT/Dispatcher.pm
index bf03ec8..bbe8c47 100644
--- a/lib/RT/Dispatcher.pm
+++ b/lib/RT/Dispatcher.pm
@@ -541,7 +541,9 @@ before 'admin/custom_fields/' => run {
# page_nav->child( _('Create') => url => "/admin/custom_fields/Modify.html?create=1", );
}
- if ( my $id = Jifty->web->request->argument('id') ) {
+ if ( my $id = Jifty->web->request->argument('custom_field')
+ || Jifty->web->request->argument('id') )
+ {
my $obj = RT::Model::CustomField->new();
$obj->load($id);
# my $tabs = page_nav->child( $obj->name, url => "/admin/custom_fields/Modify.html?id=" . $id );
@@ -552,6 +554,11 @@ before 'admin/custom_fields/' => run {
$tabs->child( _('Group rights') => url => "/admin/custom_fields/group_rights?id=" . $id );
$tabs->child( _('User rights') => url => "/admin/custom_fields/user_rights?id=" . $id );
+ if ( $obj->is_selection_type && !$obj->is_external_values ) {
+ $tabs->child( _('Values'),
+ url => "/admin/custom_fields/values?custom_field=" . $id );
+ }
+
if ( $obj->lookup_type =~ /^RT::Model::Queue-/io ) {
$tabs->child( _('Applies to'), url => "/admin/custom_fields/objects?id=" . $id );
}
diff --git a/lib/RT/View/Admin/CustomFields.pm b/lib/RT/View/Admin/CustomFields.pm
index 67888ca..23e9f1b 100644
--- a/lib/RT/View/Admin/CustomFields.pm
+++ b/lib/RT/View/Admin/CustomFields.pm
@@ -52,6 +52,9 @@ package RT::View::Admin::CustomFields;
use Jifty::View::Declare -base;
use base 'RT::View::CRUD';
+require RT::View::Admin::CustomFields::Values;
+alias RT::View::Admin::CustomFields::Values under 'values/';
+
use constant page_title => 'Custom Field Management';
use constant object_type => 'CustomField';
use constant display_columns =>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list