Skip to content

Commit

Permalink
Merge pull request #400 from AmpersandTarski/ExcelImport_#397
Browse files Browse the repository at this point in the history
ExcelImport bugfix (atomnames in lists could have surrounding whitespace)
  • Loading branch information
RieksJ committed Apr 28, 2016
2 parents 7bff221 + 383afb3 commit bf6e4b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/zwolle/extensions/ExcelImport/ExcelImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ private function ParseLines($lines){
if ($cell == '') continue; // If cell is empty, it is skipped
elseif ($cell == '_NEW') $rightAtoms[] = $leftAtom; // If the cell contains '_NEW', the same atom as the $leftAtom is used. Useful for property-relations
elseif($separator[$col]){
$atomsIds = explode($separator[$col],$cell);
foreach($atomsIds as $atomId) $rightAtoms[] = new Atom($atomId, $concept[$col]->name);
$atomsIds = explode($separator[$col],$cell); // atomnames may have surrounding whitespace
foreach($atomsIds as $atomId) $rightAtoms[] = new Atom(trim($atomId), $concept[$col]->name);
}else{
$rightAtoms[] = new Atom($line[$col], $concept[$col]->name);
}
Expand Down

0 comments on commit bf6e4b7

Please sign in to comment.