View Issue Details

IDProjectCategoryView StatusLast Update
0033992mantisbtrsspublic2026-07-18 07:12
Reporterdomosekai Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version2.26.1 
Target Version2.29.0 
Summary0033992: RSS should have been sorted by date_submitted but failed due to invisibility
Description

Currently if a column is not visible, it's not sortable. See notes at build_order_by().

While in View Issues it's not a problem because it makes no sense to sort by an invisible column, in RSS the default column to sort by is date_submitted which is not visible by default. The RSS feed is always sorted in the default order (i.e. last updated).

/* issues_rss.php */
if( $f_sort === 'update' ) {
    $c_sort_field = 'last_updated';
} else {
    $c_sort_field = 'date_submitted';  // no effect due to invisibility
}

A temporary fix is to use id instead of date_submitted. But the real question is should it be allowed to sort by an invisible column?

TagsNo tags attached.

Activities

dregad

dregad

2024-03-12 04:14

developer   ~0068647

Thanks for the bug report. I can confirm the behavior as described.

It would appear that when the filter API was refactored several years ago, it did not consider that filters were also used in non-UI contexts such as RSS. Or more accurately, the question was asked, but not answered [1].

dregad

dregad

2026-07-18 07:12

developer   ~0071301

https://github.com/mantisbt/mantisbt/pull/2246

dregad

dregad

2026-07-18 07:12

developer   ~0071302

PR https://github.com/mantisbt/mantisbt/pull/2246