summaryrefslogtreecommitdiff
path: root/FS/FS/Conf.pm
diff options
context:
space:
mode:
Diffstat (limited to 'FS/FS/Conf.pm')
-rw-r--r--FS/FS/Conf.pm12
1 files changed, 10 insertions, 2 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 30aa1e7ab..5f2c3b355 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -1472,8 +1472,16 @@ httemplate/docs/config.html
{
'key' => 'ticket_system-default_queueid',
'section' => '',
- 'description' => 'Default queue number used when creating new customer tickets.',
- 'type' => 'text',
+ 'description' => 'Default queue used when creating new customer tickets.',
+ 'type' => 'select-sub',
+ 'options_sub' => sub { eval "use FS::TicketSystem;";
+ die $@ if $@;
+ FS::TicketSystem->queues();
+ },
+ 'option_sub' => sub { eval "use FS::TicketSystem;";
+ die $@ if $@;
+ FS::TicketSystem->queue(shift);
+ },
},
{