[freeside-commits] freeside/FS/FS payinfo_Mixin.pm, 1.5.2.2, 1.5.2.3

Ivan,,, ivan at wavetail.420.am
Sun May 4 18:53:06 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv10330

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	payinfo_Mixin.pm 
Log Message:
better fix for using new payment duplicate stuff with cc encryption :)

Index: payinfo_Mixin.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/payinfo_Mixin.pm,v
retrieving revision 1.5.2.2
retrieving revision 1.5.2.3
diff -u -d -r1.5.2.2 -r1.5.2.3
--- payinfo_Mixin.pm	5 May 2008 01:18:48 -0000	1.5.2.2
+++ payinfo_Mixin.pm	5 May 2008 01:53:01 -0000	1.5.2.3
@@ -230,8 +230,14 @@
       $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;
+    }
   }
 }
 



More information about the freeside-commits mailing list