Skip to content

Commit

Permalink
[NDB_BVL_Feedback] Fixing 500 error on instrument list page (#8694)
Browse files Browse the repository at this point in the history
A recent change (#7826) to the NDB_BVL_Feedback class causes the following 500 Error to appear when the instrument_list page is loaded. This is because references are made to Timepoint::singleton instead of TimePoint::singleton.

Fix casing.
  • Loading branch information
AlexandraLivadas committed May 30, 2023
1 parent 577e3a7 commit d7e1de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/libraries/NDB_BVL_Feedback.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ class NDB_BVL_Feedback
if (!empty($this->_feedbackObjectInfo['SessionID'])) {
$query .= " AND ft.SessionID = :SID";
$qparams['SID'] = $this->_feedbackObjectInfo['SessionID'];
$timepoint = Timepoint::singleton(
$timepoint = TimePoint::singleton(
new SessionID($qparams['SID'])
);
$hasReadPermission = (
Expand Down Expand Up @@ -580,7 +580,7 @@ class NDB_BVL_Feedback
} elseif (!empty($this->_feedbackObjectInfo['SessionID'])) {
$query .= " AND ft.SessionID = :SID AND ft.CommentID is null";
$qparams['SID'] = $this->_feedbackObjectInfo['SessionID'];
$timepoint = Timepoint::singleton(
$timepoint = TimePoint::singleton(
new SessionID($qparams['SID'])
);
$hasReadPermission = (
Expand Down

0 comments on commit d7e1de1

Please sign in to comment.