Skip to content

Commit 74c8ae0

Browse files
committed
Fix related_reports do not pass a builder, pass results
1 parent 3d4bba5 commit 74c8ae0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Controller/IncidentsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private function sendNotificationMail(int $reportId): void
168168
'incidents' => $this->Reports->getIncidents()->toArray(),
169169
'incidents_with_description' => $this->Reports->getIncidentsWithDescription(),
170170
'incidents_with_stacktrace' => $this->Reports->getIncidentsWithDifferentStacktrace(),
171-
'related_reports' => $this->Reports->getRelatedReports(),
171+
'related_reports' => $this->Reports->getRelatedReports()->all(),
172172
'status' => $this->Reports->status,
173173
];
174174
$viewVars = array_merge($viewVars, $this->getSimilarFields($reportId));

src/Controller/ReportsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function view(?string $reportId): void
126126
'incidents_with_stacktrace',
127127
$this->Reports->getIncidentsWithDifferentStacktrace()
128128
);
129-
$this->set('related_reports', $this->Reports->getRelatedReports());
129+
$this->set('related_reports', $this->Reports->getRelatedReports()->all());
130130
$this->set('status', $this->Reports->status);
131131
$this->setSimilarFields($reportId);
132132

0 commit comments

Comments
 (0)