projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LXDebug::clone_for_dump: Warnung wegen Hash-Zugriff mit Key undef vermeiden
[kivitendo-erp.git]
/
SL
/
Controller
/
CsvImport
/
BaseMulti.pm
diff --git
a/SL/Controller/CsvImport/BaseMulti.pm
b/SL/Controller/CsvImport/BaseMulti.pm
index
7ab7062
..
b975394
100644
(file)
--- a/
SL/Controller/CsvImport/BaseMulti.pm
+++ b/
SL/Controller/CsvImport/BaseMulti.pm
@@
-22,7
+22,7
@@
sub run {
my $profile = $self->profile;
my $profile = $self->profile;
- $self->csv(SL::Helper::Csv->new(file
=>
$self->file->file_name,
+ $self->csv(SL::Helper::Csv->new(file
=> ('SCALAR' eq ref $self->file)? $self->file:
$self->file->file_name,
encoding => $self->controller->profile->get('charset'),
profile => $profile,
ignore_unknown_columns => 1,
encoding => $self->controller->profile->get('charset'),
profile => $profile,
ignore_unknown_columns => 1,
@@
-158,6
+158,8
@@
sub init_cvar_columns_by {
sub handle_cvars {
my ($self, $entry, %params) = @_;
sub handle_cvars {
my ($self, $entry, %params) = @_;
+ return if @{ $entry->{errors} };
+
my %type_to_column = ( text => 'text_value',
textfield => 'text_value',
select => 'text_value',
my %type_to_column = ( text => 'text_value',
textfield => 'text_value',
select => 'text_value',