X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FRecord.pm;h=a667f4e7e1ec8ed511c367f88d304abf7d7f1d8a;hb=52a824f9b11ca266be10c76894eaf6607344c8d0;hp=4915b96ef7baeb93c54e4440d985e6ec689e2fb6;hpb=7a486dea647f735a9a1d0381443218ad6affe6e1;p=freeside.git diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 4915b96ef..a667f4e7e 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -1766,17 +1766,14 @@ files. Currently only supports a single file named "file". =cut -use Storable qw(thaw); use Data::Dumper; -use MIME::Base64; sub process_batch_import { - my($job, $opt) = ( shift, shift ); + my($job, $opt, $param) = @_; my $table = $opt->{table}; my @pass_params = $opt->{params} ? @{ $opt->{params} } : (); my %formats = %{ $opt->{formats} }; - my $param = thaw(decode_base64(shift)); warn Dumper($param) if $DEBUG; my $files = $param->{'uploaded_files'} @@ -2649,8 +2646,8 @@ sub ut_alpha_lower { Check/untaint phone numbers. May be null. If there is an error, returns the error, otherwise returns false. -Takes an optional two-letter ISO country code; without it or with unsupported -countries, ut_phonen simply calls ut_alphan. +Takes an optional two-letter ISO 3166-1 alpha-2 country code; without +it or with unsupported countries, ut_phonen simply calls ut_alphan. =cut