[freeside-commits] freeside/FS/FS Record.pm,1.193,1.194
Ivan,,,
ivan at wavetail.420.am
Fri Aug 21 17:26:27 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv19326
Modified Files:
Record.pm
Log Message:
cleaner??
Index: Record.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.193
retrieving revision 1.194
diff -u -d -r1.193 -r1.194
--- Record.pm 17 Aug 2009 20:48:26 -0000 1.193
+++ Record.pm 22 Aug 2009 00:26:24 -0000 1.194
@@ -1207,7 +1207,10 @@
# Encrypt for replace
my $saved = {};
- if ($conf->exists('encryption') && defined(eval '@FS::'. $new->table . '::encrypted_fields')) {
+ if ( $conf->exists('encryption')
+ && defined(eval '@FS::'. $new->table . '::encrypted_fields')
+ && scalar( eval '@FS::'. $new->table . '::encrypted_fields')
+ ) {
foreach my $field (eval '@FS::'. $new->table . '::encrypted_fields') {
$saved->{$field} = $new->getfield($field);
$new->setfield($field, $new->encrypt($new->getfield($field)));
More information about the freeside-commits
mailing list