Skip to content

Commit

Permalink
pkp#8710 Updated assignedTo exception to ignore only the author name
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Apr 13, 2023
1 parent 659000e commit 8a91ef1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion classes/submission/Collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,13 @@ public function getQueryBuilder(): Builder
->when(is_array($this->assignedTo), function ($q) {
$q->leftJoin('review_assignments AS ra', 'ra.submission_id', '=', 'p.submission_id')
->whereIn('ra.reviewer_id', $this->assignedTo)
->whereNull('ra.reviewer_id');
->where(fn (Builder $q) => $q
->whereNull('ra.reviewer_id')
->orWhereNotIn('aus.setting_name', [
Identity::IDENTITY_SETTING_GIVENNAME,
Identity::IDENTITY_SETTING_FAMILYNAME
])
);
})
->where(DB::raw('lower(aus.setting_value)'), 'LIKE', $likePattern)->addBinding($word);
});
Expand Down

0 comments on commit 8a91ef1

Please sign in to comment.