mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Bugfix for a bug when adding a tag in a rule
This commit is contained in:
parent
3a4fc65712
commit
1732acfee2
@ -47,7 +47,7 @@ class AddTag implements ActionInterface
|
||||
// journal has this tag maybe?
|
||||
$tag = Tag::firstOrCreateEncrypted(['tag' => $this->action->action_value, 'user_id' => Auth::user()->id]);
|
||||
|
||||
$count = $journal->tags()->where('id', $tag->id)->count();
|
||||
$count = $journal->tags()->where('tag_id', $tag->id)->count();
|
||||
if ($count == 0) {
|
||||
$journal->tags()->save($tag);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user