need to check headers first
This commit is contained in:
parent
b3139c3bf0
commit
1075f59086
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,8 @@ has '+csv_required_columns' => (
|
||||||
sub import_csv {
|
sub import_csv {
|
||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
|
|
||||||
|
$self->check_headers;
|
||||||
|
|
||||||
while ( my $row = $self->get_csv_line ) {
|
while ( my $row = $self->get_csv_line ) {
|
||||||
$self->_row_to_result($row);
|
$self->_row_to_result($row);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue