mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fixed some tests.
This commit is contained in:
@@ -159,12 +159,12 @@ class TransactionJournal extends Model
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->tag_count === 1) {
|
||||
if (intval($this->tag_count) === 1) {
|
||||
// get amount for single tag:
|
||||
$amount = $this->amountByTag($this->tags()->first(), $amount);
|
||||
}
|
||||
|
||||
if ($this->tag_count > 1) {
|
||||
if (intval($this->tag_count) > 1) {
|
||||
// get amount for either tag.
|
||||
$amount = $this->amountByTags($amount);
|
||||
|
||||
|
Reference in New Issue
Block a user