fix credit card banning w/encryption
authorivan <ivan>
Wed, 26 Oct 2011 22:51:36 +0000 (22:51 +0000)
committerivan <ivan>
Wed, 26 Oct 2011 22:51:36 +0000 (22:51 +0000)
FS/FS/Record.pm

index 7531cf0..ece3a16 100644 (file)
@@ -2006,7 +2006,7 @@ sub _h_statement {
   ;
 
   # If we're encrypting then don't store the payinfo in the history
   ;
 
   # If we're encrypting then don't store the payinfo in the history
-  if ( $conf && $conf->exists('encryption') ) {
+  if ( $conf && $conf->exists('encryption') && $self->table ne 'banned_pay' ) {
     @fields = grep { $_ ne 'payinfo' } @fields;
   }
 
     @fields = grep { $_ ne 'payinfo' } @fields;
   }