mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-10-26 07:00:10 -05:00
Possible fix for https://github.com/firefly-iii/firefly-iii/issues/12692
This commit is contained in:
1 parent
bb75b6c099
commit
a2ef2b4366
2 files changed
+2
-1
No files matched your search
@@ -42,6 +42,7 @@ class RecurrenceTransaction extends Model
|
||||
protected $fillable = [
|
||||
'recurrence_id',
|
||||
'transaction_currency_id',
|
||||
'transaction_type_id',
|
||||
'foreign_currency_id',
|
||||
'source_id',
|
||||
'destination_id',
|
||||
|
||||
@@ -181,7 +181,7 @@ trait RecurrenceValidation
|
||||
/** @var null|RecurrenceTransaction $first */
|
||||
$first = $recurrence->recurrenceTransactions()->first();
|
||||
if (null !== $first) {
|
||||
$transactionType = null !== $first->transactionType ? $first->transactionType->type : 'withdrawal';
|
||||
$transactionType = null !== $first->transactionType()->first() ? $first->transactionType->type : 'withdrawal';
|
||||
Log::debug(sprintf('Determined type to be %s.', $transactionType));
|
||||
}
|
||||
if (null === $first) {
|
||||
|
||||
Reference in new issue
Block a user