Merge "TopicSubscriptions: Hide broken "Topic" sort"

This commit is contained in:
jenkins-bot 2021-10-28 21:05:40 +00:00 committed by Gerrit Code Review
commit 93e7f10e68

View file

@ -148,6 +148,7 @@ class TopicSubscriptionsPager extends TablePager {
* @inheritDoc
*/
protected function isFieldSortable( $field ) {
return isset( self::INDEX_FIELDS[$field] );
// Topic is set to the auto-ID field (sub_id), so sorting by it is not very useful
return isset( self::INDEX_FIELDS[$field] ) && $field !== '_topic';
}
}