Skip to content

Commit

Permalink
[RiskList] fix: select distinct risks
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo David committed Jul 21, 2022
1 parent 04cd022 commit 2498219
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
// Build and execute select
// --------------------------------------------------------------------
if ( ! preg_match('/(evaluation)/', $sortfield)) {
$sql = 'SELECT ';
$sql = 'SELECT DISTINCT ';
foreach ($risk->fields as $key => $val) {
$sql .= 't.' . $key . ', ';
}
Expand Down Expand Up @@ -377,7 +377,7 @@
exit;
}
} else {
$sql = 'SELECT ';
$sql = 'SELECT DISTINCT ';
foreach ($evaluation->fields as $key => $val) {
$sql .= 'evaluation.' . $key . ', ';
}
Expand Down

0 comments on commit 2498219

Please sign in to comment.