From 9535d2cf113dfd7940abe4d0ef2f61ab8d4ca26b Mon Sep 17 00:00:00 2001 From: Jonas Raoni Soares da Silva Date: Wed, 5 Jun 2024 00:35:07 +0300 Subject: [PATCH] pkp/pkp-lib#8700 Fixed typo (cherry picked from commit 86bb06122a7ab98aef73655a7a865d67be780d6a) --- classes/reviewForm/ReviewFormElementDAO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/reviewForm/ReviewFormElementDAO.php b/classes/reviewForm/ReviewFormElementDAO.php index fee132f279a..970fc4be3c4 100644 --- a/classes/reviewForm/ReviewFormElementDAO.php +++ b/classes/reviewForm/ReviewFormElementDAO.php @@ -239,7 +239,7 @@ public function getByReviewFormId($reviewFormId, $rangeInfo = null, $included = { $q = DB::table('review_form_elements', 'rfe') ->where('rfe.review_form_id', '=', $reviewFormId) - ->where($included !== null, fn (Builder $q) => $q->where('rfe.included', '=', $included)) + ->when($included !== null, fn (Builder $q) => $q->where('rfe.included', '=', $included)) ->select('rfe.*') ->orderBy('rfe.seq'); $result = $this->retrieveRange($q, [], $rangeInfo);