Skip to content

Commit

Permalink
fix clause
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Oct 4, 2024
1 parent 8c2fc01 commit 5509e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ControlController.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public function index(Request $request)

// Fetch measures for all controls in one query
$controlMeasures = DB::table('control_measure')
->select(['control_id', 'measure_id'])
->select(['control_id', 'measure_id', 'clause'])
->leftjoin('measures', 'measures.id', '=', 'measure_id')
->whereIn('control_id', $controls->pluck('id'))
->orderBy('clause')
Expand Down

0 comments on commit 5509e1e

Please sign in to comment.