mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 11:48:05 +00:00
Fix #4628
This commit is contained in:
@@ -338,7 +338,7 @@ class GroupCollector implements GroupCollectorInterface
|
|||||||
*/
|
*/
|
||||||
public function setJournalIds(array $journalIds): GroupCollectorInterface
|
public function setJournalIds(array $journalIds): GroupCollectorInterface
|
||||||
{
|
{
|
||||||
if (0!==count($journalIds)) {
|
if (0 !== count($journalIds)) {
|
||||||
$this->query->whereIn('transaction_journals.id', $journalIds);
|
$this->query->whereIn('transaction_journals.id', $journalIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -718,10 +718,12 @@ class GroupCollector implements GroupCollectorInterface
|
|||||||
|
|
||||||
// also merge attachments:
|
// also merge attachments:
|
||||||
if (array_key_exists('attachment_id', $result)) {
|
if (array_key_exists('attachment_id', $result)) {
|
||||||
$attachmentId = (int)$augumentedJournal['attachment_id'];
|
$attachmentId = (int)$augumentedJournal['attachment_id'];
|
||||||
$result['attachments'][$attachmentId] = [
|
if (0 !== $attachmentId) {
|
||||||
'id' => $attachmentId,
|
$result['attachments'][$attachmentId] = [
|
||||||
];
|
'id' => $attachmentId,
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
Reference in New Issue
Block a user