need to check headers first
This commit is contained in:
parent
9299c46fdf
commit
acad46a9b5
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