Project

General

Profile

Actions

Defect #29701

closed

Custom queries are broken by updating with nil parameter values

Added by Go MAEDA over 5 years ago. Updated over 5 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Steps to reproduce:

1. Open the issues list and move some columns to "Selected Columns" list box in the filter options. In the screenshot below, "Start date" and "Due date" is the column. You will see those 2 columns in the issues list.

2. Click "Apply" and save the query as a custom query.

3. Move to the gantt and apply the query by clicking the query name in the sidebar.

4. Click "Edit" to update the query.

5. Save the query without any change.

6. Go back to the issues list and apply the query. "Start date" and "Due date" should be in the list, but actually the selected columns in the query have been reset to default and you cannot see those 2 columns.

7. In addition, you no longer be able to change the selected columns of the query any longer after updating the query on gantt view. "Available columns" and "Selected columns" list boxes are grayed-out.


Files

issues-list-1@2x.png (60.5 KB) issues-list-1@2x.png Go MAEDA, 2018-10-01 04:06
issues-list-2@2x.png (49.8 KB) issues-list-2@2x.png Go MAEDA, 2018-10-01 04:06
query-edit@2x.png (51.1 KB) query-edit@2x.png Go MAEDA, 2018-10-01 04:06
bugfix-29701.patch (3.78 KB) bugfix-29701.patch Mizuki ISHIKAWA, 2018-10-04 03:49

Related issues

Related to Redmine - Defect #31063: Can't uncheck Gantt chart options of custom queriesClosedJean-Philippe Lang

Actions
Actions #1

Updated by Mizuki ISHIKAWA over 5 years ago

I attached a patch to fix this detect.
Actually, not only the selected columns but also the same problem occurred in many columns such as sort_criteria and group_by.
bugfix-29701.patch also solves those problems.

Actions #2

Updated by Go MAEDA over 5 years ago

  • Target version set to Candidate for next minor release
Actions #3

Updated by Go MAEDA over 5 years ago

  • Subject changed from Updating a custom query on gantt view resets selected columns to default to Custom queries are broken by updating with nil parameter values
  • Assignee set to Go MAEDA
  • Target version changed from Candidate for next minor release to 4.0.0
  • Resolution set to Fixed

Committed the patch. Thank you for fixing the issue so quickly.

Actions #4

Updated by Go MAEDA over 5 years ago

  • Status changed from New to Closed
Actions #5

Updated by Go MAEDA almost 5 years ago

  • Related to Defect #31063: Can't uncheck Gantt chart options of custom queries added
Actions

Also available in: Atom PDF