From 86bb06122a7ab98aef73655a7a865d67be780d6a 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 --- 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 f2913c7b57d..c13bdd89b43 100644 --- a/classes/reviewForm/ReviewFormElementDAO.php +++ b/classes/reviewForm/ReviewFormElementDAO.php @@ -237,7 +237,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);