Skip to content

Commit

Permalink
Unconditionally enable new form of field:none search.
Browse files Browse the repository at this point in the history
Tests on HotCRP.com indicate equivalence for all configured searches.
  • Loading branch information
kohler committed Mar 13, 2024
1 parent cf1e448 commit 8e604aa
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/reviewsearchmatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,13 +459,9 @@ function test_review(Contact $user, PaperInfo $prow, ReviewInfo $rrow) {
return false;
}
$rf = $this->rfsrch->rf;
if ($rf->view_score <= $user->view_score_bound($prow, $rrow)) {
return false;
}
$fvx = $rf->test_exists($rrow);
$fv = $fvx ? $rrow->fields[$rf->order] : null;
if ((self::$mode === 1 && !$fvx)
|| !$this->rfsrch->test_value($rrow, $fv)) {
if ($rf->view_score <= $user->view_score_bound($prow, $rrow)
|| !$rf->test_exists($rrow)
|| !$this->rfsrch->test_value($rrow, $rrow->fields[$rf->order])) {
return false;
}
}
Expand Down

0 comments on commit 8e604aa

Please sign in to comment.