Revision 13b5fc65
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
SL/Controller/CsvImport.pm | ||
---|---|---|
15 | 15 |
use Rose::Object::MakeMethods::Generic |
16 | 16 |
( |
17 | 17 |
scalar => [ qw(type profile file all_profiles all_charsets sep_char all_sep_chars quote_char all_quote_chars escape_char all_escape_chars all_buchungsgruppen |
18 |
import_status errors headers data num_imported) ], |
|
18 |
import_status errors headers data num_imported num_importable) ],
|
|
19 | 19 |
); |
20 | 20 |
|
21 | 21 |
__PACKAGE__->run_before('check_auth'); |
... | ... | |
147 | 147 |
$worker->run; |
148 | 148 |
$worker->save_objects if !$params{test}; |
149 | 149 |
|
150 |
$self->num_importable(scalar grep { !$_ } map { scalar @{ $_->{errors} } } @{ $self->data }); |
|
150 | 151 |
$self->import_status($params{test} ? 'tested' : 'imported'); |
151 | 152 |
|
152 | 153 |
$self->action_new; |
Auch abrufbar als: Unified diff
Statusausgabe verbessert