projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20122dd
)
Keine undefinierten Werte als Referenzen nutzen (passiert im Fehlerfall)
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 2 Mar 2011 08:42:15 +0000
(09:42 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 16 Jun 2011 06:44:31 +0000
(08:44 +0200)
SL/Controller/CsvImport.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/CsvImport.pm
b/SL/Controller/CsvImport.pm
index
6556c5b
..
e95b171
100644
(file)
--- a/
SL/Controller/CsvImport.pm
+++ b/
SL/Controller/CsvImport.pm
@@
-151,7
+151,7
@@
sub test_and_import {
$worker->run;
$worker->save_objects if !$params{test};
- $self->num_importable(scalar grep { !$_ } map { scalar @{ $_->{errors} } } @{ $self->data });
+ $self->num_importable(scalar grep { !$_ } map { scalar @{ $_->{errors} } } @{ $self->data
|| []
});
$self->import_status($params{test} ? 'tested' : 'imported');
flash('info', $::locale->text('Objects have been imported.')) if !$params{test};