Project

General

Profile

Actions

Defect #32769

closed

Unable to sort projects table by custom field

Added by Yann Rambourg about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Projects
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Hi,

On main project page, I'm able to display all projects and subprojects in a table format with filters on Custom Fields. However, I cannot sort project on this fields.
I can click the column title, it displays the arrow indicating that sorting is ascending or descending on this column, but the order of project in the table is not reflected accordingly.
Sorting on standard fields (Name, ID, Description) is OK.

I also tested to set the order in a saved report, behaviour is the same. Tested with following field types: Text, integer, decimal, date, boolean, none of them is working.

Environment:

Redmine version 4.1.0.stable
Ruby version 2.3.5-p376 (2017-09-14) [x86_64-linux]
Rails version 5.2.4.1
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp

SCM:

Subversion 1.9.5
Git 2.11.0
Filesystem

Redmine plugins:

periodictask 4.1.0

Best regards,
Yann


Files

Actions #1

Updated by Marius BĂLTEANU about 4 years ago

  • Status changed from New to Confirmed
  • Assignee set to Marius BĂLTEANU
  • Target version set to 4.1.1
Actions #2

Updated by Marius BĂLTEANU about 4 years ago

Here is the patch.

Actions #3

Updated by Go MAEDA about 4 years ago

  • Status changed from Confirmed to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the fix. Thank you.

Actions

Also available in: Atom PDF