From: jeff Date: Sun, 12 Jul 2009 13:28:28 +0000 (+0000) Subject: stop gratuitous hash manipulatoin during enum untaint X-Git-Tag: freeside_1_7_4rc1~16 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=ffc62c667c327a491e794ce6751a440b824319c0;p=freeside.git stop gratuitous hash manipulatoin during enum untaint --- diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 3f065b8d5..03d62cb22 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -1823,7 +1823,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 ''; } }