diff options
author | ivan <ivan> | 2006-09-13 02:14:29 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-09-13 02:14:29 +0000 |
commit | 201c446a69a498dd2fe61206ca7d04d930c497b5 (patch) | |
tree | 2306b8e0c45b9d7e64dded39663bc20d92b30aeb | |
parent | bd9acd6d55caafef329e0a88e7c07523487e2936 (diff) |
encryption-on-insert bugfix from untd
-rw-r--r-- | FS/FS/Record.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 94efc36..114b1d6 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -712,7 +712,7 @@ sub insert { # Encrypt before the database my $conf = new FS::Conf; - if ($conf->exists('encryption') && defined(eval '@FS::'. $table . 'encrypted_fields')) { + if ($conf->exists('encryption') && defined(eval '@FS::'. $table . '::encrypted_fields')) { foreach my $field (eval '@FS::'. $table . '::encrypted_fields') { $self->{'saved'} = $self->getfield($field); $self->setfield($field, $self->enrypt($self->getfield($field))); |