summaryrefslogtreecommitdiff
path: root/FS/FS/Record.pm
diff options
context:
space:
mode:
authorjeff <jeff>2009-07-12 13:27:07 +0000
committerjeff <jeff>2009-07-12 13:27:07 +0000
commit27af526f59996d1f1cb8f4181d4e320020c98062 (patch)
treea98b4e59cf5bfab20f95033d76531434afc1467a /FS/FS/Record.pm
parent0457702b06344646733df138e8df351fadd7ea3e (diff)
stop gratuitous hash manipulatoin during enum untaint
Diffstat (limited to 'FS/FS/Record.pm')
-rw-r--r--FS/FS/Record.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index 3e3af52..be29b5c 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -2342,7 +2342,7 @@ sub ut_enum {
my( $self, $field, $choices ) = @_;
foreach my $choice ( @$choices ) {
if ( $self->getfield($field) eq $choice ) {
- $self->setfield($choice);
+ $self->setfield($field, $choice);
return '';
}
}