From: Martin Helmling Date: Fri, 9 Oct 2015 09:05:12 +0000 (+0200) Subject: Request: Dateiupload in form arrays[] gefixt X-Git-Tag: release-3.4.1~655 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6ccea47689a953faf3cc611e2014a8a34c360a0a;p=kivitendo-erp.git Request: Dateiupload in form arrays[] gefixt _recode_recursively hatte die Weiche für Dateiupload nur bei Hashzugriff, und hat im Array-Kontext die Daten überschrieben. --- diff --git a/SL/Request.pm b/SL/Request.pm index 37009218e..f72694d1c 100644 --- a/SL/Request.pm +++ b/SL/Request.pm @@ -251,7 +251,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. - $to->[$idx] = $iconv->convert("" . $from->[$idx]); + $to->[$idx] = $iconv->convert("" . $from->[$idx]) if defined $from->[$idx] && !defined $to->[$idx]; } else { $to->[$idx] ||= {} if 'HASH' eq ref $from->[$idx]; $to->[$idx] ||= [] if 'ARRAY' eq ref $from->[$idx];