Skip to content

Commit

Permalink
Change log & phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
CamilleBeau committed Dec 6, 2022
1 parent 3b17859 commit 50e8ff2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ multi-echo aquisitions (PR #7515).
from the `psc` table. The default value of `CenterID` is `NULL`. Previously, the
default for `Center_name` was `AAAA` or `ZZZZ`. (PR #7525)
- The statistics displayed in the dashboard was changed to only show the data relevant to the user's site(s). (PR #8132)
- BVL Feedback widget only shows notifications for the users sites / projects (PR #7848)

#### Bug Fixes
- A LINST instrument Date field name now appears correctly (not truncated) on the
Expand Down
12 changes: 6 additions & 6 deletions modules/bvl_feedback/php/module.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,18 @@ class Module extends \Module

// Add centerID restriction if needed
if (!$user->hasPermission('access_all_profiles')) {
$site_arr = implode(",",$user->getCenterIDs());
$query .= " AND s.CenterID IN ({$site_arr}) ";
$site_arr = implode(",", $user->getCenterIDs());
$query .= " AND s.CenterID IN ({$site_arr}) ";
}

// Add project restriction & order BY
$project_arr = implode(",",$user->getProjectIDs());
$query .= " AND s.ProjectID IN ({$project_arr})
$project_arr = implode(",", $user->getProjectIDs());
$query .= " AND s.ProjectID IN ({$project_arr})
ORDER BY Testdate DESC LIMIT 4";

$bvl_feedback = $DB->pselect(
$bvl_feedback = $DB->pselect(
$query,
array()
[]
);

$frontend_feedback = [];
Expand Down

0 comments on commit 50e8ff2

Please # to comment.