From: jeff Date: Sun, 12 Jul 2009 13:27:07 +0000 (+0000) Subject: stop gratuitous hash manipulatoin during enum untaint X-Git-Tag: freeside_1_9_1^2~263 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=27af526f59996d1f1cb8f4181d4e320020c98062;p=freeside.git stop gratuitous hash manipulatoin during enum untaint --- diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 3e3af524c..be29b5c8a 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 ''; } }