[Rt-commit] rt branch, admin_ui, updated. e39fc8d4b52170b579dbbb6e50be018aa7a9995a
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Fri Dec 4 02:24:26 EST 2009
The branch, admin_ui has been updated
via e39fc8d4b52170b579dbbb6e50be018aa7a9995a (commit)
from 821f8af35393b3bb9337ad719e1c8f927fdeec2a (commit)
Summary of changes:
lib/RT/View/Admin/Queues.pm | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit e39fc8d4b52170b579dbbb6e50be018aa7a9995a
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Dec 4 15:24:19 2009 +0800
rename /admin/queues/ticket_custom_fields to /admin/queues/select_custom_fields and update view code so we can select other custom fields too
diff --git a/lib/RT/View/Admin/Queues.pm b/lib/RT/View/Admin/Queues.pm
index 056a601..1966547 100644
--- a/lib/RT/View/Admin/Queues.pm
+++ b/lib/RT/View/Admin/Queues.pm
@@ -159,21 +159,27 @@ template 'people' => page { title => _('Modify People') } content {
};
};
-template 'ticket_custom_fields' => page { title => _('Select Ticket CustomFields') } content {
+template 'select_custom_fields' => page { title => _('Select CustomFields') } content {
my $self = shift;
my $queue = $self->queue;
return unless $queue;
my $action = new_action(
class => 'SelectCustomFields',
- moniker => 'select_ticket_cfs',
+ moniker => 'select_cfs',
);
$action->object($queue);
- $action->lookup_type('RT::Model::Queue-RT::Model::Ticket');
+ # set it to RT::Model::Queue-RT::Model::Ticket-RT::Model::Transaction
+ # to select transaction cfs
- with( name => 'select_ticket_cfs' ), form {
+ my $lookup_type = get('lookup_type')
+ || 'RT::Model::Queue-RT::Model::Ticket';
+ $action->lookup_type($lookup_type);
+
+ with( name => 'select_cfs' ), form {
input { type is 'hidden'; name is 'id'; value is $queue->id };
+ input { type is 'hidden'; name is 'lookup_type'; value is $lookup_type };
render_action($action);
form_submit( label => _('Save') );
};
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list