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