|
|
@ -591,7 +591,7 @@ class Changeset |
|
|
|
// try to stop people inserting unstructured crap / malformed CSV |
|
|
|
// try to stop people inserting unstructured crap / malformed CSV |
|
|
|
throw new NotApplicableException("Value for column {$col->name} too long."); |
|
|
|
throw new NotApplicableException("Value for column {$col->name} too long."); |
|
|
|
} |
|
|
|
} |
|
|
|
$data[$col->id] = $col->cast($val); |
|
|
|
$data[$col->id] = $col->cast(trim($val)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($forTableInsert) { |
|
|
|
if ($forTableInsert) { |
|
|
|