mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Fix #211
This commit is contained in:
@@ -97,14 +97,14 @@ class JournalRepository implements JournalRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function getCollectionOfTypes(array $types, int $offset, int $count)
|
public function getCollectionOfTypes(array $types, int $offset, int $count)
|
||||||
{
|
{
|
||||||
$set = $this->user->transactionJournals()->transactionTypes($types)
|
$set = $this->user->transactionJournals()
|
||||||
|
->expanded()
|
||||||
|
->transactionTypes($types)
|
||||||
->take($count)->offset($offset)
|
->take($count)->offset($offset)
|
||||||
->orderBy('date', 'DESC')
|
->orderBy('date', 'DESC')
|
||||||
->orderBy('order', 'ASC')
|
->orderBy('order', 'ASC')
|
||||||
->orderBy('id', 'DESC')
|
->orderBy('id', 'DESC')
|
||||||
->get(
|
->get(TransactionJournal::QUERYFIELDS);
|
||||||
['transaction_journals.*']
|
|
||||||
);
|
|
||||||
|
|
||||||
return $set;
|
return $set;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user