Skip to content

Commit

Permalink
CopyPatrolRepo: add underscores to page_title in query
Browse files Browse the repository at this point in the history
  • Loading branch information
MusikAnimal committed Jul 28, 2023
1 parent e4ce3c4 commit 9eb1c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repository/CopyPatrolRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function getPlagiarismRecords( array $options = [], int $limit = 50 ): ar
// search filters
if ( $options['filter_page'] ) {
$qb->andWhere( "page_title LIKE CONCAT('%', :filterPage, '%')" );
$outerQuery->setParameter( 'filterPage', $options['filter_page'] );
$outerQuery->setParameter( 'filterPage', str_replace( ' ', '_', $options['filter_page'] ) );
}
// allow filtering by user and status
if ( $options['filter_user'] ) {
Expand Down

0 comments on commit 9eb1c4e

Please sign in to comment.