Skip to content

Commit

Permalink
Change log & phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
CamilleBeau committed Nov 23, 2021
1 parent 69a6903 commit 384d373
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 @@ -45,6 +45,7 @@ requesting a new account and will be displayed in the User Accounts module (PR #
- Addition of `date_format` as a DataType in ConfigSettings (PR #6719)
- New Data Dictionary framework to better describe data (PR #6936)
- Addition of 4 configuration settings for the minc2bids converter (PR #7488)
- BVL Feedback widget only shows notifications for the users sites / projects (PR #)

#### Bug Fixes
- The default value of the `ScannerID` field of the `mri_protocol` table is now `NULL` instead of `0`. This means that if a protocol is valid on all the study's scanners, then `ScannerID` of the protocol should be set to `NULL` (PR #7496)
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 384d373

Please sign in to comment.