X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main_Mixin.pm;h=95a53420e2867502478e2e43fb17fb7db43bb22a;hb=480fbd922ae2c943c7763012a08fb5e659ab94a7;hp=88b1bd06ddf5db264316647052af0b67d97f15a4;hpb=810f6c01aa6882f6893d4cbb061d1adafaf79638;p=freeside.git diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm index 88b1bd06d..95a53420e 100644 --- a/FS/FS/cust_main_Mixin.pm +++ b/FS/FS/cust_main_Mixin.pm @@ -650,7 +650,7 @@ or a list of search fields in the base64 encoded cgi param search. sub process_customer_agent_transfer_search_result { my $job = shift; - my $param = shift; + my $param = thaw(decode_base64(shift)); warn Dumper($param) if $DEBUG; $param->{'job'} = $job; @@ -814,6 +814,8 @@ sub unsuspend_balance { my @errors = $cust_main->unsuspend( 'reason_type' => $conf->config('unsuspend_reason_type') ); + + push @errors, $cust_main->release_hold if $conf->exists('unsuspend-unhold'); # side-fx with nested transactions? upstack rolls back? warn "WARNING:Errors unsuspending customer ". $cust_main->custnum. ": ". join(' / ', @errors)