X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FRequest.pm;h=8d62f17d0e30dabc18af804e7aaca6e5397763bd;hb=44fb4fe8d98ced50689764dab64b4633016c9fe0;hp=37009218e2bd56f242ed873cc6724e77a8dec576;hpb=7c21539153d43f09a72398d77d07ebc302a6fd9d;p=kivitendo-erp.git diff --git a/SL/Request.pm b/SL/Request.pm index 37009218e..8d62f17d0 100644 --- a/SL/Request.pm +++ b/SL/Request.pm @@ -18,6 +18,7 @@ our @EXPORT_OK = qw(flatten unflatten read_cgi_input); use Rose::Object::MakeMethods::Generic ( + scalar => [ qw(applying_database_upgrades) ], 'scalar --get_set_init' => [ qw(cgi layout presenter is_ajax type) ], ); @@ -251,7 +252,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];