X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-cust-fields.html;h=5e30638778bfb8219860ceb4c3a28feb58981fb3;hb=2554b11e48a7ec4567bf89f9a48f7a83ec925eea;hp=98feaf85c24505400d45490163ed9620569243c3;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;p=freeside.git diff --git a/httemplate/elements/select-cust-fields.html b/httemplate/elements/select-cust-fields.html index 98feaf85c..5e3063877 100644 --- a/httemplate/elements/select-cust-fields.html +++ b/httemplate/elements/select-cust-fields.html @@ -1,22 +1,18 @@ -% -% my( $cust_fields, %opt ) = @_; -% -% use FS::ConfDefaults; -% $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ]; -% -% tie my %hash, 'Tie::IxHash', @{ $opt{'avail_fields'} }; -% -% +<%init> + my( $cust_fields, %opt ) = @_; + use FS::ConfDefaults; + $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ]; + + tie my %hash, 'Tie::IxHash', @{ $opt{'avail_fields'} }; +