This commit is contained in:
James Cole
2021-04-09 16:02:50 +02:00
parent 56b2fa69bc
commit 95d72d065b

View File

@@ -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);
} }
@@ -719,10 +719,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'];
if (0 !== $attachmentId) {
$result['attachments'][$attachmentId] = [ $result['attachments'][$attachmentId] = [
'id' => $attachmentId, 'id' => $attachmentId,
]; ];
} }
}
return $result; return $result;
} }