Skip to content

Commit 50e8ff2

Browse files
committed
Change log & phpcs
1 parent 3b17859 commit 50e8ff2

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
@@ -121,6 +121,7 @@ multi-echo aquisitions (PR #7515).
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)
123123
- The statistics displayed in the dashboard was changed to only show the data relevant to the user's site(s). (PR #8132)
124+
- BVL Feedback widget only shows notifications for the users sites / projects (PR #7848)
124125

125126
#### Bug Fixes
126127
- 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)