stop gratuitous hash manipulatoin during enum untaint
authorjeff <jeff>
Sun, 12 Jul 2009 13:27:07 +0000 (13:27 +0000)
committerjeff <jeff>
Sun, 12 Jul 2009 13:27:07 +0000 (13:27 +0000)
FS/FS/Record.pm

index 3e3af52..be29b5c 100644 (file)
@@ -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 '';
     }
   }