Skip to content

Commit 2f959ea

Browse files
committed
Change log & phpcs
1 parent d79f81e commit 2f959ea

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ multi-echo aquisitions (PR #7515).
120120
- The `Center_name` field in the `mri_protocol` table has been replaced by `CenterID`
121121
from the `psc` table. The default value of `CenterID` is `NULL`. Previously, the
122122
default for `Center_name` was `AAAA` or `ZZZZ`. (PR #7525)
123+
- BVL Feedback widget only shows notifications for the users sites / projects (PR #)
123124

124125
#### Bug Fixes
125126
- A LINST instrument Date field name now appears correctly (not truncated) on the

modules/bvl_feedback/php/module.class.inc

+6-6
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ class Module extends \Module
7979

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

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

91-
$bvl_feedback = $DB->pselect(
91+
$bvl_feedback = $DB->pselect(
9292
$query,
93-
array()
93+
[]
9494
);
9595

9696
$frontend_feedback = [];

0 commit comments

Comments
 (0)