Skip to content
Snippets Groups Projects
Commit b1682b59 authored by Jon goldberg's avatar Jon goldberg
Browse files

CRM-21129 - CLI API CSV import doesn't allow single-column CSVs

parent 4782a39d
Branches
Tags
No related merge requests found
......@@ -418,9 +418,6 @@ class civicrm_cli_csv_file extends civicrm_cli {
$this->separator = ";";
rewind($handle);
$header = fgetcsv($handle, 0, $this->separator);
if (count($header) == 1) {
die("Invalid file format for " . $this->_file . ". It must be a valid csv with separator ',' or ';'\n");
}
}
$this->header = $header;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment