my( $cust_fields, %opt ) = @_;
use FS::ConfDefaults;
$opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ];
tie my %hash, 'Tie::IxHash', @{ $opt{'avail_fields'} };
my( $cust_fields, %opt ) = @_;
use FS::ConfDefaults;
$opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ];
tie my %hash, 'Tie::IxHash', @{ $opt{'avail_fields'} };