Fix blank/empty field being returned as invalid object #222

This commit is contained in:
Nabeel Shahzad
2018-03-30 18:53:43 -05:00
parent 2c726f6c52
commit f2952c6567
3 changed files with 44 additions and 0 deletions

View File

@@ -129,6 +129,10 @@ class ImportExport
# No multiple values in here, just a straight value
if (\count($split_values) === 1) {
if(trim($split_values[0]) === '') {
return [];
}
return [$split_values[0]];
}