Skip to content

Commit

Permalink
fix report
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Nov 12, 2024
1 parent 5e5cca8 commit 3dd2e88
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/Http/Controllers/ReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,20 +473,20 @@ private function generateActionPlanTable(
$actions =
DB::table('actions')
->select([
'id',
'reference',
'type',
'scope',
'name',
'cause',
'remediation',
'due_date',
'actions.id',
'actions.reference',
'actions.type',
'actions.scope',
'actions.name',
'actions.cause',
'actions.remediation',
'actions.due_date',
])
->where('status',0);
// filter on framework
if ($framework !== null) {
$actions = $actions
->join('action_measure', 'actions.id', '=', 'action_measure.measure_id')
->join('action_measure', 'actions.id', '=', 'action_measure.action_id')
->join('measures', 'measures.id', '=', 'action_measure.measure_id')
->join('domains', 'domains.id', '=', 'measures.domain_id')
->where('domains.framework', '=', $framework);
Expand Down

0 comments on commit 3dd2e88

Please sign in to comment.