mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-01 02:21:45 +00:00
This commit is contained in:
@@ -362,11 +362,9 @@ class CreateRecurringTransactions implements ShouldQueue
|
|||||||
$groupTitle = null;
|
$groupTitle = null;
|
||||||
$count = $recurrence->recurrenceTransactions->count();
|
$count = $recurrence->recurrenceTransactions->count();
|
||||||
// #8844, if there is one recurrence transaction, use the first title as the title.
|
// #8844, if there is one recurrence transaction, use the first title as the title.
|
||||||
if (1 === $count) {
|
// #9305, if there is one recurrence transaction, group title must be NULL.
|
||||||
/** @var RecurrenceTransaction $first */
|
$groupTitle = null;
|
||||||
$first = $recurrence->recurrenceTransactions()->first();
|
|
||||||
$groupTitle = $first->description;
|
|
||||||
}
|
|
||||||
// #8844, if there are more, use the recurrence transaction itself.
|
// #8844, if there are more, use the recurrence transaction itself.
|
||||||
if ($count > 1) {
|
if ($count > 1) {
|
||||||
$groupTitle = $recurrence->title;
|
$groupTitle = $recurrence->title;
|
||||||
|
|||||||
Reference in New Issue
Block a user