mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Fixed a bug in tag creation.
This commit is contained in:
@@ -106,9 +106,9 @@ class TagRepository implements TagRepositoryInterface
|
||||
{
|
||||
$tags = $this->user->tags()->get();
|
||||
/** @var Tag $tag */
|
||||
foreach ($tags as $tag) {
|
||||
if ($tag->tag === $tag) {
|
||||
return $tag;
|
||||
foreach ($tags as $databaseTag) {
|
||||
if ($databaseTag->tag === $tag) {
|
||||
return $databaseTag;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user