typo: puhs -> push
[kivitendo-erp.git] / SL / Request.pm
index cef5c14..dab5745 100644 (file)
@@ -165,7 +165,7 @@ sub _recode_recursively {
         # Workaround for a bug: converting $from->[$idx] directly
         # leads to 'undef'. I don't know why. Converting a copy works,
         # though.
-        $from->[$idx] = $iconv->convert("" . $from->[$idx]);
+        $to->[$idx] = $iconv->convert("" . $from->[$idx]);
       } else {
         $to->[$idx] ||= {} if 'HASH'  eq ref $from->[$idx];
         $to->[$idx] ||= [] if 'ARRAY' eq ref $from->[$idx];
@@ -219,8 +219,6 @@ sub read_cgi_input {
     _store_value($target, $_, $temp_form{$_}) for keys %temp_form;
   }
 
-  map { $target->{$_} = $temp_target->{$_} } keys %{ $temp_target };
-
   $::lxdebug->leave_sub;
 
   return $target;