Skip to content

Commit

Permalink
Fix subject search
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher authored and ajnyga committed Nov 17, 2019
1 parent 091c376 commit 78a3b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/search/ArticleSearch.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function getSimilarityTerms($submissionId) {
if ($article->getData('status') === STATUS_PUBLISHED) {
// Retrieve keywords (if any).
$submissionSubjectDao = DAORegistry::getDAO('SubmissionSubjectDAO');
$searchTerms = array_filter($submissionSubjectDao->getSubjects($article->getId(), array_keys(AppLocale::getLocale(), $article->getLocale(), AppLocale::getPrimaryLocale())));
$searchTerms = array_filter($submissionSubjectDao->getSubjects($article->getId(), array(AppLocale::getLocale(), $article->getLocale(), AppLocale::getPrimaryLocale())));
// Tokenize keywords.
$searchTerms = (array) array_shift($searchTerms);
}
Expand Down

0 comments on commit 78a3b20

Please sign in to comment.