mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 08:23:52 +00:00
Merge "TopicSubscriptions: Hide broken "Topic" sort"
This commit is contained in:
commit
93e7f10e68
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue