From ba5975d05c4bf88a47750fecf8651821460ab30f Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 16 Jun 2011 20:21:41 +0000 Subject: add default_agentnum config, RT#13302 --- FS/FS/Conf.pm | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'FS') diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index ab0e6b79d..d5b89b700 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1835,23 +1835,18 @@ and customer address. Include units.', 'type' => 'checkbox', }, + { + 'key' => 'default_agentnum', + 'section' => 'UI', + 'description' => 'Default agent for the backoffice', + 'type' => 'select-agent', + }, + { 'key' => 'signup_server-default_agentnum', 'section' => 'self-service', 'description' => 'Default agent for the signup server', - 'type' => 'select-sub', - 'options_sub' => sub { require FS::Record; - require FS::agent; - map { $_->agentnum => $_->agent } - FS::Record::qsearch('agent', { disabled=>'' } ); - }, - 'option_sub' => sub { require FS::Record; - require FS::agent; - my $agent = FS::Record::qsearchs( - 'agent', { 'agentnum'=>shift } - ); - $agent ? $agent->agent : ''; - }, + 'type' => 'select-agent', }, { -- cgit v1.2.1