Revision da1ae660
Von Bernd Bleßmann vor etwa 7 Jahren hinzugefügt
SL/Controller/CsvImport/BaseMulti.pm | ||
---|---|---|
159 | 159 |
my ($self, $entry, %params) = @_; |
160 | 160 |
|
161 | 161 |
return if @{ $entry->{errors} }; |
162 |
return unless $entry->{object}->can('cvars_by_config'); |
|
162 | 163 |
|
163 | 164 |
my %type_to_column = ( text => 'text_value', |
164 | 165 |
textfield => 'text_value', |
... | ... | |
172 | 173 |
|
173 | 174 |
# autovivify all cvars (cvars_by_config will do that for us) |
174 | 175 |
my @cvars; |
175 |
@cvars = @{ $entry->{object}->cvars_by_config } if $entry->{object}->can('cvars_by_config');
|
|
176 |
@cvars = @{ $entry->{object}->cvars_by_config }; |
|
176 | 177 |
|
177 | 178 |
foreach my $config (@{ $self->cvar_configs_by->{row_ident}->{$entry->{raw_data}->{datatype}} }) { |
178 | 179 |
next unless exists $entry->{raw_data}->{ "cvar_" . $config->name }; |
Auch abrufbar als: Unified diff
CsvImport: Mulitplex: handle_cvars-Routine verlassen, wenn Objekt keine CVars kann