diff options
author | ivan <ivan> | 2011-06-16 20:21:41 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-06-16 20:21:41 +0000 |
commit | ba5975d05c4bf88a47750fecf8651821460ab30f (patch) | |
tree | 01d6c275330ae1135146cfaa2c1750ea24cde209 /FS | |
parent | c1cd1e5c13ba6087850139bc9bea4ff5efb65200 (diff) |
add default_agentnum config, RT#13302
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Conf.pm | 21 |
1 files changed, 8 insertions, 13 deletions
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 @@ -1836,22 +1836,17 @@ and customer address. Include units.', }, { + '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', }, { |