mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 18:58:07 +00:00
Cannot create empty tags.
Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
@@ -41,9 +41,11 @@ class TagsComma extends BasicConverter implements ConverterInterface
|
||||
'zoomLevel' => null,
|
||||
'tagMode' => 'nothing',
|
||||
];
|
||||
if (strlen($string) > 0) {
|
||||
$tag = $repository->store($data); // should validate first?
|
||||
$tags->push($tag);
|
||||
}
|
||||
}
|
||||
$tags = $tags->merge($this->data['tags']);
|
||||
|
||||
return $tags;
|
||||
|
||||
@@ -42,9 +42,11 @@ class TagsSpace extends BasicConverter implements ConverterInterface
|
||||
'zoomLevel' => null,
|
||||
'tagMode' => 'nothing',
|
||||
];
|
||||
if (strlen($string) > 0) {
|
||||
$tag = $repository->store($data); // should validate first?
|
||||
$tags->push($tag);
|
||||
}
|
||||
}
|
||||
$tags = $tags->merge($this->data['tags']);
|
||||
|
||||
return $tags;
|
||||
|
||||
Reference in New Issue
Block a user