From: ivan Date: Mon, 5 May 2008 01:53:01 +0000 (+0000) Subject: better fix for using new payment duplicate stuff with cc encryption :) X-Git-Tag: freeside_1_7_4rc1~366 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=5ae7da14537560fb9d501d90aa7af9ba45f910cc;p=freeside.git better fix for using new payment duplicate stuff with cc encryption :) --- diff --git a/FS/FS/payinfo_Mixin.pm b/FS/FS/payinfo_Mixin.pm index 40b97a91d..f2edbd261 100644 --- a/FS/FS/payinfo_Mixin.pm +++ b/FS/FS/payinfo_Mixin.pm @@ -230,8 +230,14 @@ sub payinfo_check { $self->payinfo('N/A'); #??? } } else { - my $error = $self->ut_textn('payinfo'); - return $error if $error; + if ( $self->is_encrypted($self->payinfo) ) { + #something better? all it would cause is a decryption error anyway? + my $error = $self->ut_anythingn('payinfo'); + return $error if $error; + } else { + my $error = $self->ut_textn('payinfo'); + return $error if $error; + } } }