<%init> my %opt = @_; my %curr_value = map { $_ => 1 } split(', ',$opt{'curr_value'}); my @fields; push @fields, '', $opt{empty_label} if exists($opt{empty_label}); my $conf = new FS::Conf; if ($conf->config('ticket_system') eq 'RT_Internal') { push @fields, FS::TicketSystem->custom_fields( lookuptype => $opt{lookuptype}, valuetype => $opt{valuetype}, ); }