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 30, 2022
1 parent d79f81e commit 2f959ea
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 @@ -120,6 +120,7 @@ multi-echo aquisitions (PR #7515).
- The `Center_name` field in the `mri_protocol` table has been replaced by `CenterID`
from the `psc` table. The default value of `CenterID` is `NULL`. Previously, the
default for `Center_name` was `AAAA` or `ZZZZ`. (PR #7525)
- BVL Feedback widget only shows notifications for the users sites / projects (PR #)

#### 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 2f959ea

Please # to comment.