Changes to the CSV importer because I ran into small bugs.

This commit is contained in:
James Cole
2016-02-11 08:11:12 +01:00
parent 569e8b6180
commit 4cd7976f63
13 changed files with 26 additions and 17 deletions

View File

@@ -18,7 +18,8 @@ class Description implements PostProcessorInterface
*/
public function process()
{
$this->data['description'] = trim($this->data['description']);
$description = $this->data['description'] ?? '';
$this->data['description'] = trim($description);
if (strlen($this->data['description']) == 0) {
$this->data['description'] = trans('firefly.csv_empty_description');
}