Skip to content

Commit

Permalink
pkp/pkp-lib#10139 Fix search type handling in ArticleSearchDAO
Browse files Browse the repository at this point in the history
  • Loading branch information
Hafsa-Naeem committed Aug 5, 2024
1 parent 697329c commit a6342a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/search/ArticleSearchDAO.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ public function getPhraseResults($journal, $phrase, $publishedFrom = null, $publ
$sqlWhere .= ' AND o0.object_id = o'.$i.'.object_id AND o0.pos+'.$i.' = o'.$i.'.pos';
}
}
if (!empty($type) && $type == SUBMISSION_SEARCH_AUTHOR) {

if (!empty($type)) {
$sqlWhere .= ' AND o.type = ?';
$params[] = $type;
}
}

if (!empty($publishedFrom)) {
$sqlWhere .= ' AND p.date_published >= ?';
Expand Down

0 comments on commit a6342a8

Please sign in to comment.