diff options
| author | ivan <ivan> | 2011-06-16 20:21:47 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2011-06-16 20:21:47 +0000 |
| commit | 1ec6e14e7280515373bc9e1008f6c3dfb8ee66d8 (patch) | |
| tree | 2e4b2e0d1637e861c824268cc41158c91f4ba991 /FS | |
| parent | b75797f6508bdb79d3e865d82aa145a608f7be3e (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 8bc681841..8ccd9678a 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1821,22 +1821,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', }, { |
