Ignore "exact match" title when the title is not given

Restore a check removed in 3b3729ad4d.

Bug: T353860
Change-Id: I4722596433247a751d736ae35d9e3af9ac9d94cb
This commit is contained in:
Bartosz Dziewoński 2023-12-21 11:35:17 +01:00
parent 50fd39fc10
commit 46e44bc694

View file

@ -134,12 +134,13 @@ class LintErrorsPager extends TablePager {
} }
if ( $this->exactMatch ) { if ( $this->exactMatch ) {
if ( $this->title !== '' ) {
$queryBuilder->where( [ "page_title" => $this->title ] ); $queryBuilder->where( [ "page_title" => $this->title ] );
}
} else { } else {
$queryBuilder->where( $this->mDb->expr( $queryBuilder->where( $this->mDb->expr(
'page_title', IExpression::LIKE, new LikeValue( $this->title, $this->mDb->anyString() ) 'page_title', IExpression::LIKE, new LikeValue( $this->title, $this->mDb->anyString() )
) ) );
);
} }
if ( $mainConfig->get( 'LinterUserInterfaceTagAndTemplateStage' ) ) { if ( $mainConfig->get( 'LinterUserInterfaceTagAndTemplateStage' ) ) {
if ( $this->throughTemplate !== 'all' ) { if ( $this->throughTemplate !== 'all' ) {