From 201c446a69a498dd2fe61206ca7d04d930c497b5 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 13 Sep 2006 02:14:29 +0000 Subject: [PATCH] encryption-on-insert bugfix from untd --- FS/FS/Record.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 94efc366d..114b1d6ab 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))); -- 2.11.0